extraction_functions | R Documentation |
These functions extract data from given nodes/attributes from XML item list.
.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)
xml |
XML item list. |
xpath |
Single string, name of XPATH expression, for example node name. |
attr |
Single string, name of attribute |
List of elements of equal length as xml
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.