powered by
Shift a vector left or right according to the value provided
shift_vector(x, n)
the vector
shift
the vector shifted
# NOT RUN { shift_vector(c(1,2,3,4), 1) shift_vector(c(1,2,3,4), -1) # }
Run the code above in your browser using DataLab