xml_to_df: function hacked from...

View source: R/xml_to_df.R

xml_to_dfR Documentation

function hacked from https://hopstat.wordpress.com/2014/01/14/faster-xml-conversion-to-data-frames/. fastest, most dependable, but requires xpath knowledge.

Description

function hacked from https://hopstat.wordpress.com/2014/01/14/faster-xml-conversion-to-data-frames/. fastest, most dependable, but requires xpath knowledge.

Usage

xml_to_df(file, xpath, is_xml = FALSE, dig = FALSE)

Arguments

file

xml or zip file imported using xml2

xpath

xml path to file

is_xml

if already xml, dont parse

dig

whether to recursively search into nodes. better and faster to keep FALSE and explicitly write out xpath.


ultinomics/xmlExtras documentation built on March 27, 2023, 9:55 a.m.