powered by
Compute a lagged version of a functional time series, shifting the time base back by a given number of observations.
# S3 method for dfts lag(x, k = 1, ...)
A dfts object.
A dfts object. See dfts().
dfts()
Integer for the number of lags (in units of observations).
Unused additional parameters.
stats::lag(), diff.dfts()
stats::lag()
diff.dfts()
result <- lag(electricity)
Run the code above in your browser using DataLab