Description Usage Arguments Value
To e.g. change the position of a peak within a series positive n shifts things to the left, negative to the right
From: http://stackoverflow.com/questions/30542128/circular-shifting-arrays-in-r-by-distance-n
1 | shifter(x, n)
|
x |
[1,m] numeric, input data |
n |
[1,1] ind, number of positions to shift, positive n shifts things to the left, negative to the right |
A shifted version of x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.