eml_get: eml_get

Description Usage Arguments Details Methods (by class) Examples

Description

eml_get

Usage

1
2
3
4
5
6
7
8
9
eml_get(x, element = NULL, ...)

## S4 method for signature 'attributeList'
eml_get(x, eml = x)


  ## S4 method for signature 'unitList'
eml_get(x = read_eml(system.file("xsd/eml-2.1.1/eml-unitDictionary.xml",
  package = "EML103")))

Arguments

x

an EML object or child/descendant object

element

name of the element to be extracted. If multiple occurrences are found, will extract all

...

additional arguments for specific get_* methods, see details

eml

the eml file from which to look up references (optional)

Details

Some elements have custom get_<class> functions which return the requested metadata in a more natural format, such as get_attributeList, which returns data.frames containing the desired metadata. If such a function exists for the element requested, that function is called instead. Additional arguments given to 'eml_get' will be passed to that function via ..., for example, compare get_attributes to the example shown here.

Methods (by class)

Examples

1
2
3
4
5
6
7
f <- system.file("xsd/test", "eml-datasetWithUnits.xml", package = "EML")
eml <- read_eml(f)
eml_get(eml, "physical")
eml_get(eml, "attributeList")

## The first argument need not be an "eml" class, it could be a child element; e.g.
eml_get(eml@dataset@dataTable, "physical")

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