lag
is a generic function; this page documents its default
method.
lag(x, ...)
"lag"(x, k = 1, ...)
x
.
x
are given a tsp
attribute
via hasTsp
.
diff
, deltat
lag(ldeaths, 12) # starts one year earlier
Run the code above in your browser using DataLab