add_other_entity: Add Other Entity

View source: R/other-entity-element.R

add_other_entityR Documentation

Add Other Entity

Description

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

Usage

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")
                        )
## Not run: 
dataset <- list() %>%
    add_other_entity(other_entity_metadata)
dataset

## End(Not run)

CVPIA-OSC/EMLaide documentation built on Aug. 25, 2023, 8:53 a.m.