Usage
how(within = Within(), plots = Plots(), blocks = NULL,
nperm = 199, complete = FALSE, maxperm = 9999,
minperm = 99, all.perms = NULL, make = TRUE,
observed = FALSE)Within(type = c("free","series","grid","none"),
constant = FALSE, mirror = FALSE,
ncol = NULL, nrow = NULL)
Plots(strata = NULL, type = c("none","free","series","grid"),
mirror = FALSE, ncol = NULL, nrow = NULL)
Arguments
within, plots, blocks
Permutation designs for samples within the
levels of plots
(within
), permutation of plots
themselves, or for the definition of blocking structures which
further restrict permutations (blocks
)
nperm
numeric; the number of permutations.
complete
logical; should complete enumeration of all
permutations be performed?
type
character; the type of permutations required. One of
"free"
, "series"
, "grid"
or "none"
. See
Details.
maxperm
numeric; the maximum number of permutations to
perform. Currently unused.
minperm
numeric; the lower limit to the number of possible
permutations at which complete enumeration is performed. See argument
complete
and Details, below.
all.perms
an object of class allPerms
, the result of a
call to allPerms
. make
logical; should check
generate all possible
permutations? Useful if want to check permutation design but not
produce the matrix of all permutations, or to circumvent the
heuristics governing when complete enumeration is activated.
observed
logical; should the observed permutation be returned
as part of the set of all permutations? Default is FALSE
to
facilitate usage in higher level functions.
constant
logical; should the same permutation be used within
each level of strata? If FALSE
a separate, possibly restricted,
permutation is produced for each level of strata
.
mirror
logical; should mirroring of sequences be allowed?
ncol, nrow
numeric; the number of columns and rows of samples
in the spatial grid respectively.
strata
A factor, or an object that can be coerced to a factor
via as.factor
, specifying the strata for permutation.