1. Introduction to brfinance"

# Definir mirror do CRAN primeiro
options(repos = c(CRAN = "https://cloud.r-project.org/"))

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

A Simple Solution for Brazilian Financial Data

The brfinance package provides simplified access to Brazilian macroeconomic and financial indicators from official sources like IBGE and Central Bank of Brazil.

Core Functions

Language Support

All functions support both English ("eng") and Portuguese ("pt") through the language parameter:

# English (default)
data_eng <- get_selic_rate(2020, 2024, language = "eng")

# Portuguese
data_pt <- get_selic_rate(2020, 2024, language = "pt")

Installation:

# From CRAN
install.packages("brfinance")

# Development version
devtools::install_github("efram2/brfinance")

library(brfinance)


Try the brfinance package in your browser

Any scripts or data that you put into this service are public.

brfinance documentation built on Feb. 19, 2026, 9:06 a.m.