| ct_dp_filter | R Documentation |
Subsets observations in camera trap data package, retaining all rows that satisfy the conditions.
ct_dp_filter(package, table = c("observations", "deployments", "media"), ...)
package |
Camera trap data package object, as returned by ct_read_dp(). |
table |
Character indicating the table to read - one "observations", "deployments", or "media" |
... |
Filtering conditions, see dplyr::filter() |
A Camera Trap Data Package object of the same class as package,
with the selected table subset to the rows satisfying the conditions in
.... Related tables are updated so the package stays internally
consistent (see camtrapdp::filter_observations()).
dp <- ct_dp_example()
ct_dp_filter(package = dp, table = "observation",
scientificName == "Vulpes vulpes", observationLevel == "event"
)
ct_dp_filter(package = dp, table = "deployments",
latitude > 51.0, longitude > 5.0)
ct_dp_filter(package = dp, table = "media",
captureMethod == "activityDetection", filePublic == FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.