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)

Example output

 [1]  6  2  8  1  7  3  4 10  5  9

gtools documentation built on May 2, 2019, 4:52 p.m.

Related to permute in gtools...