powered by
Circularly rotates elememnts in a vector.
rotateVector(x, shift=1)
a vector.
an integer denoting the shift (number of elements to circularly rotate). A negative value implies a negative (leftward) shift of the data.
a numeric vector containing the result.
isVectorAtomic.
isVectorAtomic
# NOT RUN { rotateVector(1:5, 2) rotateVector(1:5, -2) # }
Run the code above in your browser using DataLab