Created
April 17, 2021 14:33
-
-
Save msperlin/2f940a17f58bd86fdaca581646680c3f to your computer and use it in GitHub Desktop.
Exemplo de uso do pacote GetDFPData2 (entrevista 04/2021)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!require('GetDFPData2')) install.packages('GetDFPData2') | |
if (!require('tidyverse')) install.packages('tidyverse') | |
library(GetDFPData2) | |
library(tidyverse) | |
my_company <- 'WEG' | |
search_company(my_company) | |
my_id <- NULL # get all companies | |
my_id <- 5410 # get WEG SA data | |
l_dfp <- get_dfp_data(companies_cvm_codes = my_id, | |
first_year = 2015, | |
last_year = 2020, | |
use_memoise = TRUE) | |
l_dfp$`DF Individual - Demonstração do Resultado` | |
# get ATIVO | |
ativo <- l_dfp$`DF Consolidado - Balanço Patrimonial Ativo` %>% | |
filter(CD_CONTA == 1) | |
glimpse(ativo) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment