Lag a vector or a matrix of observations by iK
periods.
1  Lag(mY, iK)

mY 
a vector or a matrix of observations. 
iK 
An integer indicating the number of lag. 
The function returns a numeric
vector or a matrix
depending on the class of mY
. The dimension of the object is preserved and NA's are introduced for the missing values.
An object of the class numeric
or matrix
.
Leopoldo Catania & Nima Nonejad
1 2 3 4 5 6 7 8 9 10 11 12 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.