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.
Arguments
- x
Camera Trap Data Package object, as returned by
read_camtrapdp()
.- 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)
#> # A tibble: 6 × 7
#> title firstName lastName email path role organization
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 Axel Neukermans Axel Neukerm… axel… http… cont… Research In…
#> 2 Danny Van der beeck Danny Van der… dani… NA NA NA
#> 3 Emma Cartuyvels Emma Cartuyv… emma… NA prin… Research In…
#> 4 Peter Desmet Peter Desmet pete… http… cont… Research In…
#> 5 Research Institute for Natu… NA NA NA http… righ… NA
#> 6 Research Institute for Natu… NA NA NA http… publ… NA
# Set contributors
contributors(x) <- head(contributors(x), 1)