View source: R/ct_plot_camtrap_activity.R
| ct_summarise_camtrap_activity | R Documentation |
Calculates summary statistics for camera trap activity periods.
ct_summarise_camtrap_activity(
data,
deployment_column,
datetime_column,
threshold = 5,
time_unit = "days",
format = NULL
)
data |
A data frame containing the datetime column. |
deployment_column |
Character. Column name for deployment identifiers. |
datetime_column |
The datetime column. |
threshold |
A numeric value indicating the minimum gap to be considered a break (default is 10). |
time_unit |
The unit for the threshold. Supported values include "secs", "mins", "hours", "days", and "weeks". |
format |
Optional. A character string specifying the datetime format, passed to |
A tibble with activity summary statistics for each deployment.
# Get activity summary
library(dplyr)
data(penessoulou)
camtrap_data <- penessoulou %>%
filter(project == "Last")
ct_summarise_camtrap_activity(data = camtrap_data,
deployment_column = "camera",
datetime_column = datetimes,
threshold = 15,
time_unit = "days")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.