permute: Randomly Permute the Elements of a Vector

View source: R/permute.R

permuteR Documentation

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

sample

Examples


x <- 1:10
permute(x)

gtools documentation built on Nov. 20, 2023, 5:07 p.m.