Description Usage Arguments Details
a simple method to get lag series
1 | lag(x, k = 1)
|
x |
a numeric vector |
k |
how many times to lag |
returned series will have k
NA
in the head
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.