| convert_dates | R Documentation |
Format date variable retrieved from the SDW into a proper date variable
convert_dates(x)
x |
A vector of dates |
A date-formatted vector
convert_dates(c("2024-01", "2024-02", "2024-03"))
convert_dates(c("2023-Q4", "2024-Q1"))
hicp <- get_data("ICP.M.U2.N.000000.4.ANR")
if (!is.null(hicp)) {
hicp$obstime <- convert_dates(hicp$obstime)
str(hicp)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.