R/permute.R
permute.Rd
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
Gregory R. Warnes greg@warnes.net
x <- 1:10 permute(x) #> [1] 8 3 1 2 7 4 6 10 5 9