Learn R Programming

brfinance (version 0.2.2)

get_selic_rate: Get daily Brazilian SELIC rate data (annualized, base 252)

Description

Downloads the daily SELIC rate series (ID 1178) from the Central Bank of Brazil’s SGS (Time Series Management System) API. Returns a tidy data frame.

Usage

get_selic_rate(start_year, end_year, language = "eng")

Value

A tibble with SELIC rate data between the selected years.

Arguments

start_year

Starting year (e.g., 2020)

end_year

Ending year (e.g., 2024)

language

Language for column names: "pt" for Portuguese or "eng" (default) for English

Examples

Run this code
if (FALSE) {
selic_data <- get_selic_rate(2020, 2024)
}

Run the code above in your browser using DataLab