Description Usage Arguments Details Value Author(s) References See Also Examples
These function define a permutation for subsequent use.
1 2 3 4 |
... |
For the function |
n.items |
An optional argument provided instead of |
fixed |
Should the permutation be fixed? |
x |
An object of class |
A valid permutation of length n
is an integer vector of length
n
containing each integer 1
, 2
,... n
only once.
An object of class shallot.permutation
.
David B. Dahl dahl@stat.byu.edu
1 2 3 4 | ## Demonstrate permutation.
permutation(c(3, 1, 2, 5, 4))
permutation(c(3, 1, 2, 5, 4), fixed=FALSE)
permutation(n.items=5, fixed=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.