get_attributes: get_attributes

Description Usage Arguments Details Value Examples

View source: R/get_attributes.R

Description

get_attributes

Usage

1
get_attributes(x, eml = x)

Arguments

x

an "attributeList" element from EML

eml

The full eml document, needed only if <references> outside of attributes must be resolved.

Details

EML metadata can use "references" elements which allow one attribute to use metadata declared elsewhere in the document. This function will automatically resolve these references and thus infer the correct metadata.

Value

a data frame whose rows are the attributes (names of each column in the data file) and whose columns describe metadata about those attributes. By default separate tables are given for each type

Examples

1
2
3
4
 # runs > 5s

eml <- read_eml(system.file("xsd/test/eml-datasetWithAttributelevelMethods.xml", package = "EML"))
get_attributes( eml@dataset@dataTable[[1]]@attributeList )

clnsmth/EML103 documentation built on May 22, 2019, 5:32 p.m.