add_personnel.Rd
Adds the personnel metadata elements to a dataset list according to EML standards.
add_personnel(parent_element, personnel_metadata)
A list representing the EML project or dataset
A dataframe of personnel information see create_person
The dataset list or project with personnel information appended.
One person within personnel_metadata
must have role of 'creator'.
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()
#>