shuffle {mlr3misc} | R Documentation |
Safe Version of Sample
Description
A version of sample()
which does not treat positive scalar integer x
differently.
See example.
Usage
shuffle(x, n = length(x), ...)
Arguments
x |
( |
n |
( |
... |
( |
Examples
x = 2:3
sample(x)
shuffle(x)
x = 3
sample(x)
shuffle(x)
[Package mlr3misc version 0.15.1 Index]