| ct_traprate_data | R Documentation |
Calculates observation counts and associated monitoring effort per deployment to support trap rate estimation.
ct_traprate_data(
observation_data,
use_deployment = TRUE,
deployment_data = NULL,
deployment_column,
start_column = NULL,
end_column = NULL,
datetime_column = NULL,
format = NULL,
time_zone = "",
time_unit = "days"
)
observation_data |
A data frame of detection records (e.g., camera trap images or events). |
use_deployment |
Logical. If |
deployment_data |
Optional. A data frame of deployment metadata; required if |
deployment_column |
The column name (unquoted or as a string) that uniquely identifies the deployment (e.g., camera ID). |
start_column |
Optional. Start datetime column in the deployment data. Required if |
end_column |
Optional. End datetime column in the deployment data. Required if |
datetime_column |
Optional. The datetime column in |
format |
A character string specifying the format of the datetime columns. If |
time_zone |
The time zone used to parse datetime values. Default is |
time_unit |
Unit of time to compute effort and trap rate.
One of |
A data frame with columns:
deployment_column: Deployment identifier
n: Number of observations per deployment
effort: Monitoring duration
effort_unit: Time unit used for effort
ct_get_effort()
data("ctdp")
deployments <- ctdp$data$deployments
observations <- ctdp$data$observations %>%
dplyr::filter(scientificName == "Vulpes vulpes")
ct_traprate_data(observation_data = observations,
deployment_data = deployments,
use_deployment = TRUE,
deployment_column = deploymentID,
datetime_column = timestamp,
start = start, end = 'end'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.