lagged | R Documentation |
Provides a lagging mechanism for vector data.
lagged(x, lag = 1)
x |
A |
lag |
An |
A vector
with lagged values and NA
s.
James Balamuta
x = rnorm(10)
lagged(x, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.