fxml_getUniqueElements: Handling flat XML files

Description Usage Arguments Value Author(s) See Also Examples

View source: R/flatxml.r

Description

Returns the unique XML elements included in an XML document.

Usage

1

Arguments

xmlflat.df

A flat XML dataframe created with fxml_importXMLFlat.

Value

A vector with all the names of the elements included in the XML document xmlflat.df. Every tag is only returned once, even if it occurs multiple times in the document. The return vector is empty (NULL) if no elements exist.

Author(s)

Joachim Zuckarelli joachim@zuckarelli.de

See Also

fxml_getElement

Examples

1
2
3
4
5
6
7
# Load example file with population data from United Nations Statistics Division
# and create flat dataframe
example <- system.file("worldpopulation.xml", package="flatxml")
xml.dataframe <- fxml_importXMLFlat(example)

# Identify the unique XML elements
fxml_getUniqueElements(xml.dataframe)

jsugarelli/flatxml documentation built on Dec. 4, 2020, 9:46 a.m.