Learn R Programming

EML (version 2.0.6.1)

eml_get: eml_get

Description

eml_get

Usage

eml_get(x, element, from = "list", ...)

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

from

explicit type for the input format. Possible values: "xml", "json", "list", or "guess" with "list" as the default.

...

additional arguments

Examples

Run this code
# NOT RUN {
f <- system.file("tests", emld::eml_version(), "eml-datasetWithUnits.xml", package = "emld")
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")
# }

Run the code above in your browser using DataLab