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 warnes@bst.rochester.edu
x <- 1:10 permute(x)