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