powered by
This function retrieves the value of a specific Brazilian economic rate (e.g., "CDI", "Selic", "IPCA") from the BrasilAPI endpoint.
get_brazil_rate_name(rate_name)
A tibble with two columns: nome (name of rate) and valor (numeric value).
nome
valor
A character string indicating the rate to retrieve. Valid examples include "CDI", "Selic", or "IPCA". Case-insensitive.
"CDI"
"Selic"
"IPCA"
get_brazil_rates to retrieve all rates at once.
get_brazil_rates
if (FALSE) { get_brazil_rate_name("CDI") get_brazil_rate_name("Selic") get_brazil_rate_name("IPCA") }
Run the code above in your browser using DataLab