pid_to_eml_entity: Create EML entity with physical section from any DataONE PID

View source: R/eml.R

pid_to_eml_entityR Documentation

Create EML entity with physical section from any DataONE PID

Description

Create EML entity with physical section from any DataONE PID

Usage

pid_to_eml_entity(mn, pid, entity_type = "otherEntity", ...)

Arguments

mn

(MNode) Member Node where the PID is associated with an object.

pid

(character) The PID of the object to create the sub-tree for.

entity_type

(character) What kind of object to create from the input. One of "dataTable", "spatialRaster", "spatialVector", "storedProcedure", "view", or "otherEntity".

...

(optional) Additional arguments to be passed to eml$entityType()).

Value

(list) The entity object.

Examples

## Not run: 
# Generate EML otherEntity
pid_to_eml_entity(mn,
                  pid,
                  entity_type = "otherEntity",
                  entityName = "Entity Name",
                  entityDescription = "Description about entity")

## End(Not run)

NCEAS/arcticdatautils documentation built on July 13, 2024, 11:02 a.m.