Description Usage Arguments Value Examples
Shifts a vector's elements left or right by N elements.
1 2 3 4 5 6 7 8 |
x |
A vector to be operated on |
n |
Number of rows to shift by (if negative, shift to right instead of left) |
wrap |
Whether to wrap elements or not (adds the entry at the beginning to the end) |
pad |
Whether to pad with NAs or not. pad does nothing unless wrap is false, in which case it specifies whether to pad with NAs |
... |
Other items to pass along |
vector of the same type as vec
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.