eml_get | R Documentation |
eml_get
eml_get(x, element, from = "list", ...)
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 |
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.