Adds the personnel metadata elements to a dataset list according to EML standards.

add_personnel(parent_element, personnel_metadata)

Arguments

parent_element

A list representing the EML project or dataset

personnel_metadata

A dataframe of personnel information see create_person

Value

The dataset list or project with personnel information appended.

Details

One person within personnel_metadata must have role of 'creator'.

Examples

personnel_metadata <- dplyr::tibble(first_name = "Stacy", last_name = "Banet", 
                                    email = "Stacy@aol.com", 
                                    role = "creator", organization = "USBR", orcid = NA)
dataset <- list() %>%
   add_personnel(personnel_metadata)
dataset
#> $creator
#> $creator$individualName
#> $creator$individualName$givenName
#> [1] "Stacy"
#> 
#> $creator$individualName$surName
#> [1] "Banet"
#> 
#> 
#> $creator$electronicMailAddress
#> [1] "Stacy@aol.com"
#> 
#> $creator$organizationName
#> [1] "USBR"
#> 
#> 
#> $contact
#> $contact$individualName
#> $contact$individualName$givenName
#> [1] "Stacy"
#> 
#> $contact$individualName$surName
#> [1] "Banet"
#> 
#> 
#> $contact$electronicMailAddress
#> [1] "Stacy@aol.com"
#> 
#> $contact$organizationName
#> [1] "USBR"
#> 
#> 
#> $associatedParty
#> list()
#>