convert_dates(c("2024-01", "2024-02", "2024-03"))
convert_dates(c("2023-Q4", "2024-Q1"))
# \donttest{
hicp <- get_data("ICP.M.U2.N.000000.4.ANR")
if (!is.null(hicp)) {
hicp$obstime <- convert_dates(hicp$obstime)
str(hicp)
}
# }
Run the code above in your browser using DataLab