get_eml_attributes: Return attribute (column) metadata from a DataONE metadata...

View source: R/get_eml_attributes.R

get_eml_attributesR Documentation

Return attribute (column) metadata from a DataONE metadata object

Description

Return attribute metadata from an EML object. This is largely a wrapper for the function EML::get_attributes().

Usage

get_eml_attributes(doc)

Arguments

doc

(emld) EML object.

Value

(list) A list of all attribute metadata from the EML in data.frame objects

Author(s)

Dominic Mullen, dmullen17@gmail.com

Examples

## Not run: 
cn <- dataone::CNode('PROD')
mn <- dataone::getMNode(cn, 'urn:node:ARCTIC')
doc <- EML::read_eml(rawToChar(dataone::getObject(mn, "doi:10.18739/A23W02")))
attributes <- get_eml_attributes(doc)

# switch nodes
cn <- dataone::CNode('PROD')
knb <- dataone::getMNode(cn,"urn:node:KNB")
doc <- EML::read_eml(rawToChar(dataone::getObject(knb, "doi:10.5063/F1639MWV")))
attributes <- get_eml_attributes(doc)

## End(Not run)

NCEAS/datamgmt documentation built on June 5, 2023, 6:14 a.m.