Shift a vector left or right according to the value provided
shift_vector(x, n)
x
the vector
n
shift
the vector shifted
shift_vector(c(1,2,3,4), 1) shift_vector(c(1,2,3,4), -1)