# \donttest{
ts_plot(AirPassengers, ts_lag(AirPassengers), title = "The need for glasses")
# }
head(ts_lag(fdeaths, "1 month"))
head(ts_lag(fdeaths, "1 year"))
head(ts_lag(ts_df(fdeaths), "2 day"))
head(ts_lag(ts_df(fdeaths), "2 min"))
head(ts_lag(ts_df(fdeaths), "-1 day"))
Run the code above in your browser using DataLab