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("cpsievert/XML2R"); library(XML2R)

Copy Link

Version

Install

install.packages('XML2R')

Monthly Downloads

285

Version

0.0.9

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Carson Sievert

Last Published

August 26th, 2025

Functions in XML2R (0.0.9)

urlsToDocs

Parse XML Files into XML Documents
collapse_obs

Collapse a list of observations into a list of tables.
re_name

Rename rows of a list
nodesToList

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

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

Add a key to connect parents to descendants
docsToNodes

Parse XML Documents into XML Nodes
XML2Obs

Parse XML files into a list of "observations"
listsToObs

Flatten nested list into a list of observations