| eml_get {EML} | R Documentation |
eml_get
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 = "EML")))
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) |
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.
attributeList: get method for attributeList
unitList: get method for UnitList
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")