deployments {camtrapdp} | R Documentation |
Get or set deployments
Description
deployments()
gets the deployments from a Camera Trap Data Package object.
deployments()<-
is the assignment equivalent.
It should only be used within other functions, where the expected data structure can be guaranteed.
Metadata (
x$spatial
andx$temporal
) are updated to match the assigned deployments.
Usage
deployments(x)
deployments(x) <- value
Arguments
x |
Camera Trap Data Package object, as returned by |
value |
A data frame to assign as deployments. |
Value
A tibble::tibble()
data frame with deployments.
See Also
Other accessor functions:
contributors()
,
events()
,
individuals()
,
locations()
,
media()
,
observations()
,
taxa()
Examples
x <- example_dataset()
# Get deployments
deployments(x)
# Set deployments (not recommended outside a function)
deployments(x) <- head(deployments(x), 1)
[Package camtrapdp version 0.4.0 Index]