These function define a permutation for subsequent use.
Usage
permutation(..., n.items = NULL, fixed = TRUE)
# S3 method for shallot.permutation
print(x, ...)
Arguments
...
For the function permutation, a permutation of the
integers 1, 2,... n, where n is the length of
the vector. For the function print.shallot.permutation, this
is ignored.
n.items
An optional argument provided instead of ... to
request a random partition. The argument fixed must be FALSE.
fixed
Should the permutation be fixed?
x
An object of class shallot.permutation.
Value
An object of class shallot.permutation.
Details
A valid permutation of length n is an integer vector of length
n containing each integer 1, 2,... n only once.