View source: R/other_functions.R
lagPad | R Documentation |
This function pads the lag taken numeric vector with NA values.
lagPad(x, k)
x |
numeric. A numeric vector. |
k |
numeric. A numeric lag value. |
A lag taken numeric vector with padding.
x <- 1:10
x.t1 <- lagPad(x, 2)
cbind(x, x.t1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.