Randomly Permute the elements of a vector

permute(x)

Arguments

x

Vector of items to be permuted

Value

Vector with the original items reordered.

Details

This is simply a wrapper function for sample.

See also

Author

Gregory R. Warnes greg@warnes.net

Examples


x <- 1:10
permute(x)
#>  [1]  8  3  1  2  7  4  6 10  5  9