Learn R Programming

bggAnalytics (version 0.2.1)

extraction_functions: 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)

Value

List of elements of equal length as xml.

Arguments

xml

XML item list.

xpath

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

attr

Single string, name of attribute