Randomly Permute the Elements of a Vector
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.