get_fre_data2: Downloads and reads FRE datasets

View source: R/fct_get_fre_data2.R

get_fre_data2R Documentation

Downloads and reads FRE datasets

Description

The FRE (formularios de referencia) is the reporting system of companies traded at B3. This function will access the CVM ftp and parse all available files according to user choices such as dates and companies.

Usage

get_fre_data2(
  first_year = lubridate::year(lubridate::today()) - 1,
  last_year = lubridate::year(lubridate::today()),
  cache_folder = get_default_cache_dir()
)

Arguments

first_year

First year of selected data

last_year

Last year of selected data

cache_folder

Path of cache folder to keep cache and zip files (default = 'gfred_cache')

Value

A list of tibbles, where each element is a different table from the FRE system

Examples

## Not run: 
l_fre <- get_fre_data2(cache_folder = fs::file_temp("fre-cache"))

## End(Not run)

msperlin/GetFREData documentation built on June 12, 2025, 11:46 p.m.