R/shuffle.R
shuffle.Rd
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.
sample
x
shuffle(x)
[vector] Input vector.
vector
Shuffled/scrambled x.
shuffle(1:10) #> [1] 2 7 3 6 8 5 1 4 10 9