Learn R Programming

XBRL (version 0.99.17)

xbrlDoAll: Function to do all required work on an XBRL instance and its associated DTS.

Description

xbrlDoAll performs all the steps necessary to extract a list of dataframes, starting from an XBRL instance file. xbrlDoAll offers the highest level of abstraction from the required steps. A medium-level access can be achieved by using XBRL. A low-level access can be achieved by using the functions related to xbrlParse.

Usage

xbrlDoAll(file.inst, cache.dir = "xbrl.Cache", prefix.out = NULL, verbose = FALSE, delete.cached.inst = TRUE)

Arguments

file.inst
the name of the instance file
cache.dir
the name of a local directory to be used as a cache of discovered taxonomies. if NULL, no cache is performed
prefix.out
if given, prefix used to create csv files with the content of the data frames produced
verbose
Set to TRUE to see output of the process of discovery and analysis if documents
delete.cached.inst
Set to TRUE to delete downloaded instance, schema and linkbase files

Value

See Also

XBRL, xbrlParse

Examples

Run this code
## Not run: 
# ## Setting stringsAsFactors = FALSE is highly recommended
# ## to avoid data frames to create factors from character vectors.
# options(stringsAsFactors = FALSE)
# 
# ## XBRL instance file to be analyzed, accessed
# ## directly from SEC website:
# inst <- "https://www.sec.gov/Archives/edgar/data/21344/000002134413000050/ko-20130927.xml"
# 
# xbrl.vars <- xbrlDoAll(inst, cache.dir="XBRLcache", prefix.out="out", verbose=TRUE)
# ## End(Not run)

Run the code above in your browser using DataLab