Learn R Programming

EML (version 2.0.6.1)

get_attributes: get_attributes

Description

get_attributes

Usage

get_attributes(x, eml = NULL)

Arguments

x

an "attributeList" element from an emld object

eml

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

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

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.

Examples

Run this code
# NOT RUN {
f <- system.file("tests", emld::eml_version(), 
  "eml-datasetWithAttributelevelMethods.xml", package = "emld")
eml <- read_eml(f)
get_attributes(eml$dataset$dataTable$attributeList)
# }

Run the code above in your browser using DataLab