View source: R/get_ifdata_reports.R
| get_ifdata_reports | R Documentation |
Download IFdata reports from the Brazilian Central Bank (Bacen) API for specified years, months, institution types, and report types. The function handles multiple combinations of parameters and returns a consolidated data frame with the results.
Also, check the page to see the available reports for each institution type and date: IFdata.
get_ifdata_reports(year, month, type_institution, report, verbose = TRUE)
year |
Numeric or vector. year (ex: 2024 or c(2023, 2024)) |
month |
Numeric or vector. month (ex: 1 to 12, or c(6, 12)) |
type_institution |
Numeric. Type of Institution:
|
report |
Numeric. Report type:
|
verbose |
Logical. If TRUE, print progress messages (default: TRUE) |
Data frame with IFdata values or NULL in the case of errors.
# Unique institution type for a specific period
data <- get_ifdata_reports(
year = 2024,
month = 12,
report = 1,
type_institution = 2
)
# Multiple periods, take some time to run
data <- get_ifdata_reports(
year = c(2023, 2024),
month = c(6, 12),
report = 1,
type_institution = 2
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.