summary.rowwise_df function

summary.rowwise_df - Summary method for Rdistance data frames

summary.rowwise_df - Summary method for Rdistance data frames

Summary method for distance sampling data frames. Rdistance data frames are rowwise tibbles. This routine is a replacement summary method for rowwise_df's that provides useful distance sampling descriptive statistics.

## S3 method for class 'rowwise_df' summary(object, formula = NULL, w.lo = 0, w.hi = NULL, ...)

Arguments

  • object: An RdistDf data frame.
  • formula: A standard formula object. For example, dist ~ 1, dist ~ covar1 + covar2). The left-hand side (before ~) is the name of the vector containing off-transect or radial detection distances. The right-hand side contains the names of covariate vectors to fit in the detection function, and potentially group sizes. Covariates can be either detection level or transect level and can appear in data or exist in the global working environment. Regular R scoping rules apply.
  • w.lo: Lower or left-truncation limit of the distances in distance data. This is the minimum possible off-transect distance. Default is 0. If w.lo is greater than 0, it must be assigned measurement units using units(w.lo) <- "<units>" or w.lo <- units::set_units(w.lo, "<units>"). See examples in the help for set_units.
  • w.hi: Upper or right-truncation limit of the distances in dist. This is the maximum off-transect distance that could be observed. If unspecified (i.e., NULL), right-truncation is set to the maximum of the observed distances. If w.hi is specified, it must have associated measurement units. Assign measurement units using units(w.hi) <- "<units>" or w.hi <- units::set_units(w.hi, "<units>"). See examples in the help for set_units.
  • ...: Other arguments for summary methods.

Returns

If object is an RdistDf, a data frame containing summary statistics relevant to distance sampling is returned invisibly. If formula is not specified, the number of distance observations and target detections is not returned because the distances, group sizes, and covariates are not known. If object is not an Rdistance data frame, return is the result of the next summary method.

Examples

data(thrasherDf) summary(thrasherDf) summary(thrasherDf , formula = dist ~ groupsize(groupsize) , w.hi = units::set_units(100,"m") )
  • Maintainer: Trent McDonald
  • License: GNU General Public License
  • Last published: 2025-04-10