if (FALSE) { # interactive()
# Default: last 30 days of exchange rate
df <- get_exchange_rate()
# Specific period
df2 <- get_exchange_rate("2023-01-01", "2023-03-31")
# Using year-month format for a specific month
df3 <- get_exchange_rate("2023-06", "2023-06")
# Portuguese column names and labels
df4 <- get_exchange_rate(language = "pt")
# Complete example with all parameters
df5 <- get_exchange_rate("2023-01-01", "2023-12-31", language = "pt", labels = TRUE)
}
Run the code above in your browser using DataLab