Skip to contents

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 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 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

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)