GetDFPData2 is the second and backwards incompatible version of
GetDPFData, a R package for downloading annual financial reports from B3, the Brazilian financial exchange. Unlike its first iteration,
GetDFPData2 imports data using a database of csv files from CVM, which makes it execute much faster than its predecessor. However, the output is slightly different.
A shiny app – web interface – is also available at https://www.msperlin.com/shiny/GetDFPData2/.
# only in github, soon in CRAN ::install_github('msperlin/GetDFPData2')devtools
# not in CRAN, install from github ::install_github('msperlin/GetFREData')devtools
library(GetDFPData2) # information about companies <- get_info_companies(tempdir()) df_info print(df_info )
search_company('grendene', cache_folder = tempdir())
library(GetDFPData2) # downloading DFP data <- get_dfp_data(companies_cvm_codes = 19615, l_dfp use_memoise = FALSE, clean_data = TRUE, cache_folder = tempdir(), # use local folder in live code type_docs = c('DRE'), type_format = 'con', first_year = 2019, last_year = 2020) str(l_dfp)