shuffle {mlr3misc} | R Documentation |
A version of sample()
which does not treat positive scalar integer x
differently.
See example.
shuffle(x, n = length(x), ...)
x |
:: |
n |
:: |
... |
:: |
x = 2:3 sample(x) shuffle(x) x = 3 sample(x) shuffle(x)