map_xml {edgarWebR} | R Documentation |
Map XML Entries
Description
Extracts a dataframe from an xml document.
Usage
map_xml(
doc,
entries_xpath,
parts,
trim = c(),
integers = c(),
date_format = ""
)
Arguments
doc |
An XML document |
entries_xpath |
an xpath locator for all starting points |
parts |
a list in the form column name = xpath locator |
trim |
a list of columns that need to have whitespace trimmed |
integers |
a list of columns that need to converted to integers |
date_format |
how dates should be parsed |
Value
A dataframe with one row per entry and columns from parts
[Package edgarWebR version 1.1.0 Index]