observations {camtrapdp}R Documentation

Get observations

Description

observations() gets the observations from a Camera Trap Data Package object.

⁠observations<-()⁠ is the assignment equivalent. It should only be used within other functions, where the expected data structure can be guaranteed.

Usage

observations(x)

observations(x) <- value

Arguments

x

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

value

A data frame to assign as observations.

Value

tibble::tibble() data frame with observations.

See Also

Other accessor functions: deployments(), events(), locations(), media(), taxa()

Examples

x <- example_dataset()
# Get the observations
observations(x)

# Set observations (not recommended outside a function)
observations(x) <- head(observations(x), 1)

[Package camtrapdp version 0.3.1 Index]