Description Usage Arguments Details Methods (by class) Examples
eml_get
1 2 3 4 5 6 7 8 9 |
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
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.