ct_rest_effort: Add camera-trapping effort (days) to formatted station data

View source: R/ct_rest_data.R

ct_rest_effortR Documentation

Add camera-trapping effort (days) to formatted station data

Description

Effort is approximated as the span between the first and last detection. When term_col is given, effort is computed per survey term and summed per station so inactive gaps between terms are not counted.

Usage

ct_rest_effort(
  detection_data,
  station_data,
  station_column = "Station",
  datetime_column = "DateTime",
  term_column = NULL,
  plot = FALSE
)

Arguments

detection_data

A data frame with one row per detection.

station_data

A data frame from ct_rest_passes() (must have a Station column).

station_column, datetime_column

Columns for the station ID and datetime in detection_data.

term_column

Optional column identifying survey terms; NULL to ignore.

plot

If TRUE, draw a Gantt-style plot of operation periods.

Value

station_data with an added Effort column (days). Stations with no or zero effort are dropped with a warning.

Examples

data(rest_detection)
data(rest_station)

stations <- ct_rest_passes(rest_detection, rest_station, model = "REST")
ct_rest_effort(rest_detection, stations)


ct documentation built on Oct. 22, 2026, 1:07 a.m.