I've been trying to isolate income statements, balance sheets, and cash flow data from the sec website using the XBRL package in R. Ideally, I would input the three into separate data frames with the hopes of exporting the data to a uniform product in excel.
I am able to print out the statements in the R console with the following commands:
inst <- "http://www.sec.gov/Archives/edgar/data/1223389/000122338914000023/conn-20141031.xml"
options(stringsAsFactors = FALSE)
xbrl.vars <- xbrlDoAll(inst)
xbrl.sec <- xbrlSECdev01(xbrl.vars)
xbrl.sec$showStatements()
but I am unable to create a data frame to hold all this information.
So far, I've tried:
conn.data <- xbrl.sec$showStatements()
Unfortunately, this just prints out the data again and leaves conn.data
NULL.
Any idea how to store this data?
"How to take the lists created by xbrlDoAll in the XBRL package in R, and organize them into dataframes readable in Excel?" was asked last March and was left unanswered.