permute {gtools} | R Documentation |
Randomly Permute the elements of a vector
permute(x)
x |
Vector of items to be permuted |
This is simply a wrapper function for sample
.
Vector with the original items reordered.
Gregory R. Warnes greg@warnes.net
x <- 1:10 permute(x)