Learn R Programming

BrazilDataAPI (version 0.1.0)

get_brazil_rate_name: Get Specific Brazilian Economic Rate by Name

Description

This function retrieves the value of a specific Brazilian economic rate (e.g., "CDI", "Selic", "IPCA") from the BrasilAPI endpoint.

Usage

get_brazil_rate_name(rate_name)

Value

A tibble with two columns: nome (name of rate) and valor (numeric value).

Arguments

rate_name

A character string indicating the rate to retrieve. Valid examples include "CDI", "Selic", or "IPCA". Case-insensitive.

See Also

get_brazil_rates to retrieve all rates at once.

Examples

Run this code
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