shuffle: Random shuffle of a vector

View source: R/shuffle.R

shuffleR Documentation

Random shuffle of a vector

Description

Basically an alias for sample Note that if the x is a scalar value the function returns simply the value itself, i.e. acts like the identity function.

Usage

shuffle(x)

Arguments

x

[vector]
Input vector.

Value

Shuffled/scrambled x.

Examples

shuffle(1:10)

jakobbossek/re documentation built on Nov. 15, 2024, 1:42 a.m.