truncdat | R Documentation |
Left- and/or right-truncates any variable in data frame dat, inserting effort-only record if truncation removes all detections on a transect. Subtracts left-trunction point off all variable values - after all truncation.
truncdat(
dat,
minval = 0,
maxval = NULL,
twosit = FALSE,
colnames = c("stratum", "area", "transect", "L", "x", "obs")
)
dat |
distance data frame. Must have columns for stratum stratum.area, transect, transect.length,
<any-observer-level_variable>, and if |
twosit |
If TRUE, assumes this is an mrds-type dataset with two lines per detection. |
colnames |
name of columns containing stratum, stratum area, transect, transect length,
<any-observer-level_variable>, and if |
minvalue |
left-truncation point. |
maxvalue |
right-truncation point. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.