Learn R Programming

XML2R

EasieR XML data collection. For an introduction to the package, see here

To install the CRAN version use: install.packages("XML2R"); library(XML2R)

To install the github version use: library(devtools); install_github("XML2R", "cpsievert"); library(XML2R)

TO DO:

(1) Fix naming of observations when no children exist
(2) Add some tests using testthat

Copy Link

Version

Install

install.packages('XML2R')

Monthly Downloads

608

Version

0.0.6

License

GPL (>= 2)

Maintainer

Carson Sievert

Last Published

March 9th, 2014

Functions in XML2R (0.0.6)

nodesToList

Coerce XML Nodes into a list with both attributes and values
XML2Obs

Parse XML files into a list of "observations"
docsToNodes

Parse XML Documents into XML Nodes
re_name

Rename rows of a list
XML2R

Parse XML files into (a list of) matrices or data frame(s)
urlsToDocs

Parse XML Files into XML Documents
add_key

Add a key to connect parents to descendants
listsToObs

Flatten nested list into a list of observations
collapse_obs

Collapse a list of observations into a list of tables.