Utility functions to return the set of all permutations under
different designs. For most practical applications, i.e. to combine
designs permuting blocks and/or within blocks function
allPerms
will be required.
allFree(n, v = seq_len(n))allSeries(n, nperms, mirror = FALSE)
allGrid(n, nperms, nr, nc, mirror, constant)
allStrata(n, control)
the number of observations.
numeric; vector of indices. Default is 1:n
.
numeric; number of possible permutations.
logical; mirroring of permutations allowed?
integer; number of rows and columns of grid designs.
logical; same permutation within each block?
a list of control values describing properties of the
permutation design, as returned by a call to how
.
A matrix of all possible permutations of n
observations or of
v
, given the provided options.
These are utility functions and aren't designed for casual
use. allPerms
should be used instead.
Details on usage of these functions can be found in
allPerms
.