function that shifts vector values to right or left
1 |
x |
Vector for which to shift values |
n |
Number of places to be shifted. Positive numbers will shift to the right by default. Negative numbers will shift to the left by default. The direction can be inverted by the invert parameter. |
default |
The value that should be inserted by default. |
invert |
Whether or not the default shift directions should be inverted. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.