Utility functions to return the set of all permutations under different
designs. For most practical applications, such as combining designs that
permute blocks and/or observations within blocks, allPerms() is required.
allFree(n, v = seq_len(n))allSeries(n, nperms, mirror = FALSE)
allGrid(n, nperms, nr, nc, mirror, symmetric = FALSE)
allStrata(n, control)
A matrix of all possible permutations of n observations or of
v, given the provided options.
The number of observations.
Numeric vector of indices. The default is seq_len(n).
Numeric; number of possible permutations.
Logical; should mirroring of permutations be allowed?
Integer; number of rows and columns of grid designs.
Logical; for grid permutations, should simultaneous mirroring in both spatial directions be disallowed?
A list describing the permutation design, as returned by
how().
Gavin Simpson
These utility functions are not designed for casual use. See allPerms()
for further details.