eml_get: eml_get

View source: R/eml_get.R

eml_getR Documentation

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


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")


EML documentation built on April 29, 2022, 1:06 a.m.