xmlrToDataFrame: Create a data frame from a xmlr Element

View source: R/xmlConverter.R

xmlrToDataFrameR Documentation

Create a data frame from a xmlr Element

Description

This is a convenience method to take all the children of the given Element and create a data frame based on the content of each child where each child constitutes a row and the attributes or elements (including text) will constitute the columns. It assumes a homogeneous structure and the column names are takes from the first child

Usage

xmlrToDataFrame(element)

Arguments

element

the element to convert

Value

a data frame


Alipsa/rcdom documentation built on March 27, 2022, 11:07 p.m.