Description Usage Arguments Value Author(s) Examples
View source: R/pub01_utilityFuncs.R
Methods for computing lags of matrix or vector objects.
1 |
m |
a matrix or a vector |
k |
the number of lags (in units of observations).Note the sign of k: a series lagged by a positive k is shifted earlier,and a negtive k is shifted later. |
na.pad |
logical. If TRUE it adds any rows that would not otherwise have been in the result with a value of NA. If FALSE those rows are dropped. |
a matirx or a vector
Ruifei.yin
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.