Learn R Programming

camtrapdp (version 0.4.0)

observations: Get or set 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.

  • Metadata (x$taxonomic) are updated to match the assigned observations.

Usage

observations(x)

observations(x) <- value

Value

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

Arguments

x

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

value

A data frame to assign as observations.

See Also

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

Examples

Run this code
x <- example_dataset()
# Get the observations
observations(x)

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

Run the code above in your browser using DataLab