Shift the elements of a vector in circular mode to the right or to the left by n elements, such that the nth element is the first one of the new vector and the first n-1 elements are appended to the end.
Usage
VecRot(x, n)
Arguments
x
a vector of any type.
n
the number of elements to shift.
Value
Details
The function will repeat the vector two times and select the appropriate number of elements from the required shift on.