Description Usage Arguments Examples
Compute a lagged version of a series or matrix, shifting the series by a given number. The shift number can be either positive or negative. Appropriate number of NA's are added either at the begging or end of the returned series so that it is the same length as the original series.
1 | glag(x, k)
|
x |
An array. |
k |
A shift number. Can be potitive or negative integer. |
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.