Skip to contents

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)

Arguments

rate_name

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

Value

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

See also

get_brazil_rates to retrieve all rates at once.

Examples

if (FALSE) { # \dontrun{
get_brazil_rate_name("CDI")
get_brazil_rate_name("Selic")
get_brazil_rate_name("IPCA")
} # }