Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

permute

Randomly Permute the Elements of a Vector


Description

Randomly Permute the elements of a vector

Usage

permute(x)

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

Examples

x <- 1:10
  permute(x)

gtools

Various R Programming Tools

v3.8.2
GPL-2
Authors
Gregory R. Warnes, Ben Bolker, and Thomas Lumley
Initial release
2020-03-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.