extraction_functions: Extraction functions

extraction_functionsR Documentation

Extraction functions

Description

These functions extract data from given nodes/attributes from XML item list.

Usage

.nodes2text(xml, xpath, scalar = TRUE)

.nodes2number(xml, xpath, scalar = TRUE)

.nodes2logical(xml, xpath, scalar = TRUE)

.attr2text(xml, xpath, attr, scalar = TRUE)

.attr2number(xml, xpath, attr, scalar = TRUE)

.attr2logical(xml, xpath, attr, scalar = TRUE)

.attr2datetime(xml, xpath, attr, scalar = TRUE)

Arguments

xml

XML item list.

xpath

Single string, name of XPATH expression, for example node name.

attr

Single string, name of attribute

Value

List of elements of equal length as xml.


bggAnalytics documentation built on Aug. 31, 2022, 5:09 p.m.