Reading Annual and Quarterly Financial Reports from B3

Reads annual and quarterly financial reports from companies traded at B3, the Brazilian exchange < https://www.b3.com.br/>. All data is downloaded and imported from CVM's public ftp site < https://dados.cvm.gov.br/dados/CIA_ABERTA/>.


R-CMD-check

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.

If you're looking for historical data from DFP, a set of compiled datasets are available in my website.

Installation

# available in cran (stable)
install.packages('GetDFPData2')

# github (dev version)
devtools::install_github('msperlin/GetDFPData2')

Examples of Usage

Information about available companies

library(GetDFPData2)

# information about companies
df_info <- get_info_companies(tempdir())
print(df_info )

Searching for companies

search_company('grendene', cache_folder = tempdir())

Downloading Financial Reports

library(GetDFPData2)

# downloading DFP data
l_dfp <- get_dfp_data(companies_cvm_codes = 19615, 
                      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)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("GetDFPData2")

0.6.5 by Marcelo Perlin, 4 months ago


https://github.com/msperlin/GetDFPData2/


Report a bug at https://github.com/msperlin/GetDFPData2/issues/


Browse source code at https://github.com/cran/GetDFPData2


Authors: Marcelo Perlin [aut, cre] , Guilherme Kirch [aut]


Documentation:   PDF Manual  


GPL-2 license


Imports stringr, xml2, dplyr, readr, lubridate, magrittr, purrr, memoise, rvest, tidyr, RCurl, shiny, writexl, stats, cli, glue, janitor

Suggests knitr, rmarkdown, testthat, ggplot2, covr, fs


Imported by GetFREData.


See at CRAN