ct_rest_passes: Aggregate the number of animal passes per station for REST /...

View source: R/ct_rest_data.R

ct_rest_passesR Documentation

Aggregate the number of animal passes per station for REST / RAD-REST

Description

Aggregate the number of animal passes per station for REST / RAD-REST

Usage

ct_rest_passes(
  detection_data,
  station_data,
  station_column = "Station",
  species_column = "Species",
  passes_column = "y",
  model = c("REST", "RAD-REST")
)

Arguments

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 detection_data.

passes_column

Column holding the number of passes per video.

model

Either "REST" (totals as Y) or "RAD-REST" (per-video pass counts spread into y_0, y_1, ... plus the video total N).

Value

A tibble with one row per station x species, ready for ct_rest_effort().

Examples

data(rest_detection)
data(rest_station)

# Original REST: total passes (Y) per station
ct_rest_passes(rest_detection, rest_station, model = "REST")

# RAD-REST: videos split by number of passes (y_0, y_1, ...)
ct_rest_passes(rest_detection, rest_station, model = "RAD-REST")


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