deployments: Get or set deployments

View source: R/deployments.R

deploymentsR 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 and x$temporal) are updated to match the assigned deployments.

Usage

deployments(x)

deployments(x) <- value

Arguments

x

Camera Trap Data Package object, as returned by read_camtrapdp().

value

A data frame to assign as deployments.

Value

A tibble::tibble() data frame with deployments.

See Also

Other accessor functions: 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)

inbo/camtrapdp documentation built on Dec. 20, 2024, 3:31 a.m.