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

get_eml_attributes(eml)

Arguments

eml

(S4) EML object.

Value

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

Examples

# NOT RUN {
cn <- dataone::CNode('PROD')
mn <- dataone::getMNode(cn, 'urn:node:ARCTIC')
eml <- EML::read_eml(rawToChar(dataone::getObject(mn, "doi:10.18739/A23W02")))
attributes <- datamgmt::get_eml_attributes(eml)

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