Description Usage Arguments Value
Shift a vector cyclically
1 | shift(x, n = 0)
|
x |
- the vector to shift |
n |
- the number of places to shift (can be negative) |
A vector of the same size as x, shifted cyclically by n places (e.g. (1,2,3) shifted by n = 1 is (2,3,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.