Description Usage Arguments Value See Also Examples
Get a financial statements object from XBRL
1 2 3 | xbrl_get_statements(xbrl_vars, rm_prefix = "us-gaap_",
complete_only = FALSE, complete_first = TRUE, role_ids = NULL,
lbase = "calculation", basic_contexts = TRUE)
|
xbrl_vars |
a XBRL parsed object |
rm_prefix |
a prefix to remove from element names |
complete_only |
Get only context with complete facts |
complete_first |
Get only context with non-NA first fact |
role_ids |
specify statements (all statements are returned by default) |
lbase |
link base ("calculation" is default) |
basic_contexts |
when duplicated periods, only basic contexts are returned |
A statements object
finstr
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# parse XBRL to XBRL data and get statements:
xbrl_url <- "http://edgar.sec.gov/Archives/edgar/data/320193/000119312514383437/aapl-20140927.xml"
xbrl_data <- xbrl_parse_min(xbrl_url)
st1 <- xbrl_get_statements(xbrl_data)
# get statements directly from a url:
xbrl_url <- "http://edgar.sec.gov/Archives/edgar/data/320193/000119312514383437/aapl-20140927.xml"
st1 <- xbrl_get_statements(xbrl_url)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.