Adds the other elements to a dataset list according to EML standards.

add_other_entity(parent_element, other_entity_metadata)

Arguments

parent_element

A list representing the EML project or dataset.

other_entity_metadata

A named list or dataframe containing other entity metadata elements (file_name, file_description, file_type, physical): see create_other_entity

Value

The dataset list or project with other entity file information appended.

Examples

 
other_entity_metadata <- list("file_name" = "other_entity.zip",
                        "file_description" = "An other entity File",
                        "physical" = add_physical("other_entity.zip")
                        )
#> Error in add_physical("other_entity.zip"): could not find function "add_physical"
if (FALSE) {
dataset <- list() %>%
    add_other_entity(other_entity_metadata)
dataset
}