Adds the maintenance metadata element to a dataset list according to EML standards.

add_maintenance(parent_element, maintenance_metadata)

Arguments

parent_element

A list representing the EML project or dataset.

maintenance_metadata

A table or list containing maintenance metadata: see create_maintenance

Value

The dataset list or project with maintenance information appended.

Examples

maintenance_metadata <- list(status = "ongoing", update_frequency = "monthly")
dataset <- list() %>%
     add_maintenance(maintenance_metadata) 
dataset
#> $maintenance
#> $maintenance$description
#> [1] "ongoing"
#> 
#> $maintenance$maintenanceUpdateFrequency
#> [1] "monthly"
#> 
#>