
Last chance! 50% off unlimited learning
Sale ends in
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.VecRot(x, n)
[
, rep
VecRot(c(1,1,0,0,3,4,8), 3)
VecRot(letters[1:10], 3)
Run the code above in your browser using DataLab