date_conversion {nixtlar} | R Documentation |
Infer frequency of a tsibble and convert its index to date or string.
date_conversion(df)
df |
A tsibble. |
A list with the inferred frequency and data frame with dates in format yyyy-mm-dd.
df <- AirPassengers
tsbl <- tsibble::as_tsibble(df)
names(tsbl) <- c("ds", "y")
date_conversion(tsbl)