contributors {camtrapdp} | R Documentation |
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
Arguments
x |
Camera Trap Data Package object, as returned by |
value |
A data frame to assign as contributors. |
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 intitle
, except if it is a single word or therole
isrightsHolder
orpublisher
. -
lastName
: if absent, this will be set to the remaining words intitle
, with the same exceptions asfirstName
. -
email
-
path
-
role
-
organization
See Also
Other accessor functions:
deployments()
,
events()
,
individuals()
,
locations()
,
media()
,
observations()
,
taxa()
Examples
x <- example_dataset()
# Get contributors
contributors(x)
# Set contributors
contributors(x) <- head(contributors(x), 1)