powered by
Randomly Permute the elements of a vector
permute(x)
Vector of items to be permuted
Vector with the original items reordered.
This is simply a wrapper function for sample.
sample
# NOT RUN { x <- 1:10 permute(x) # }
Run the code above in your browser using DataLab