| ct_rest_stay | R Documentation |
Selects and standardises the staying-time and censoring columns from a detection table and attaches per-station covariates.
ct_rest_stay(
detection_data,
station_data,
station_column = "Station",
species_column = "Species",
stay_column = "Stay",
censor_column = "Cens"
)
detection_data |
A data frame with one row per video / detection. |
station_data |
A data frame with one row per camera station. |
station_column, species_column |
Columns giving the station ID and species
in |
stay_column |
Column holding the staying time in seconds. |
censor_column |
Column holding the censoring flag (1 = censored, 0 = fully observed). |
A tibble with columns Station, Species, Stay, Cens plus any
station covariates, ready for ct_fit_rest().
data(rest_detection)
data(rest_station)
# Column names can be strings, bare names, or positions:
stay <- ct_rest_stay(rest_detection, rest_station, stay_column = Stay)
head(stay)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.