Learn R Programming

camtrapdp (version 0.4.0)

contributors: Get or set contributors

Description

contributors() gets contributors from the x$contributors property in a Camera Trap Data Package object and returns it as a tibble data frame.

contributors()<- is the assignment equivalent.

Usage

contributors(x)

contributors(x) <- value

Value

A tibble::tibble() data frame with the contributors, containing the following columns (columns absent in x$contributors will be created):

  • title

  • firstName: if absent, this will be set to the first word in title, except if it is a single word or the role is rightsHolder or publisher.

  • lastName: if absent, this will be set to the remaining words in title, with the same exceptions as firstName.

  • email

  • path

  • role

  • organization

Arguments

x

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

value

A data frame to assign as contributors.

See Also

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

Examples

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

# Set contributors
contributors(x) <- head(contributors(x), 1)

Run the code above in your browser using DataLab