Safe Version of Sample
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.