Description Usage Arguments Value Examples
View source: R/fct_download_read_itr_zip_file.R
Downloads and reads ITR datasets
1 2 3 4 5 6 7 8 | download_read_itr_zip_file(
url_in,
companies_cvm_codes,
type_docs,
type_format,
cache_folder = "gcvmd_cache",
clean_data
)
|
url_in |
Url of file to download and read |
companies_cvm_codes |
Numeric CVM code of companies. IF set to NULL (default), will return data for all available companies. |
type_docs |
Type of financial documents. E.g. c('DRE', 'BPA'). Definitions: '*' = fetch all docs, 'BPA' = Assets (ativos), 'BPP' = Liabilities (passivo), 'DRE' = income statement (demonstrativo de resultados), 'DFC_MD' = cash flow by direct method (fluxo de caixa pelo metodo direto), 'DFC_MI' = cash flow by indirect method (fluxo de caixa pelo metodo indireto), 'DMPL' = statement of changes in equity (mutacoes do patrimonio liquido), 'DVA' = value added report (desmonstrativo de valor agregado) |
type_format |
Type of format of document (con = consolidated, ind = individual). Default = c('con', 'ind') |
cache_folder |
Path of cache folder to keep memoise and zip files |
clean_data |
Clean data or return raw data? See read_dfp|itr_csv() for details |
A dataframe with itr data
1 2 3 4 5 6 7 8 9 | ## Not run: # keep cran check fast
my_url <- 'http://dados.cvm.gov.br/dados/CIA_ABERTA/DOC/ITR/DADOS/itr_cia_aberta_2012.zip'
df_out <- download_read_itr_zip_file(url_in = my_url,
companies_cvm_codes = NULL,
type_docs = 'DRE',
type_format = 'con',
clean_data = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.