shuffle | 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.