Shifts a vector
shift elements later. Character or factor
variables are padded with
"", numerics with
NA. The shift
may be negative.
Lag(x, shift = 1)
integer specifying the number of observations to be shifted to the right. Negative values imply shifts to the left.
A.ttributes of the original object are carried along to the new lagged one.
a vector like
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.