Description Usage Arguments Value Author(s) Examples
View source: R/pub01_utilityFuncs.R
Methods for computing lags of data frame objects.
1 |
df |
a data frame object |
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 data frame object
Ruifei.yin
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.