Selic and Interest Rates"

options(repos = c(CRAN = "https://cloud.r-project.org/"))
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")

get_selic_rate()

Downloads the daily SELIC rate series from Central Bank of Brazil.

Parameters

Usage

library(brfinance)

# English version
selic_eng <- get_selic_rate(2020, 2024)
head(selic_eng)

# Portuguese version  
selic_pt <- get_selic_rate(2020, 2024, language = "pt")
head(selic_pt)

plot_selic_rate()

Creates a time series plot of SELIC rate.

Parameters

Usage

# Get data
selic_data <- get_selic_rate(2020, 2024)

# Create plot
selic_plot <- plot_selic_rate(selic_data, language = "eng")
print(selic_plot)
# Portuguese version
selic_data_pt <- get_selic_rate(2000,2005, language = "pt")

selic_plot_pt <- plot_selic_rate(selic_data_pt, language = "pt")
print(selic_plot_pt)


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.