Learn R Programming

camtrapdp (version 0.4.0)

media: Get or set media

Description

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

media()<- is the assignment equivalent.

  • It should only be used within other functions, where the expected data structure can be guaranteed.

Usage

media(x)

media(x) <- value

Value

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

Arguments

x

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

value

A data frame to assign as media.

See Also

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

Examples

Run this code
x <- example_dataset()
# Get media
media(x)

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

Run the code above in your browser using DataLab