| lagvalue | R Documentation |
Lag a vector
lagvalue(x, n = 1L, default = NA)
x |
An atomic vector. |
n |
Integer count. |
default |
Value used to fill positions with no lagged observation. |
x shifted forward by n positions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.