powered by
This function permutes a given vector with a cyclic permutaion
perm_vec(x, i)
A vector
The length of the cyclic permutation
A vector permuted cyclically by x values
x
# NOT RUN { perm_vec(1:6,4) perm_vec(27:50,15) # }
Run the code above in your browser using DataLab