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.

shuffle(x)

Arguments

x

[vector]
Input vector.

Value

Shuffled/scrambled x.

Examples

shuffle(1:10)
#> [1] 2 7 3 6 8 5 1 4 10 9