permute: Randomly Permute the Elements of a Vector

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Randomly Permute the elements of a vector

Usage

1

Arguments

x

Vector of items to be permuted

Details

This is simply a wrapper function for sample.

Value

Vector with the original items reordered.

Author(s)

Gregory R. Warnes greg@warnes.net

See Also

sample

Examples

1
2
  x <- 1:10
  permute(x)


Search within the gtools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.