Description Usage Arguments Examples
returns a vector with the same length as the original one, all values are shifted by a specified amount of positions, at one end NA values are introduced.
1 | shift.vector(v, by)
|
v |
the vector that has to be shifted |
by |
the amount of positions. |
1 2 | shift.vector(c(1,2,3), 1)
shift.vector(c(1,2,3), -1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.