Replacement functions to set components of a permutation design
Simple functions to allow abstracted replacement of components of a
permutation design, for example as returned by how
. In
addition to performing replacement of components of the list returned
by how
, these replacement function also update the
matched calls stored within the list to facilitate the use of
update
by users.
setBlocks(object) <- value setPlots(object) <- value setWithin(object) <- value setStrata(object) <- value setNperm(object) <- value setAllperms(object) <- value setMaxperm(object) <- value setMinperm(object) <- value setComplete(object) <- value setMake(object) <- value setObserved(object) <- value setRow(object) <- value setCol(object) <- value setDim(object) <- value setType(object) <- value setMirror(object) <- value setConstant(object) <- value
object |
An R object to dispatch on. |
value |
The replacement value/object. |
These are replacement functions for working with permutation design
objects created by how
. They should be used in
preference to directly updating the permutation design in case the
internal structure of object changes as permute is developed and
because the matched call also needs to be updated to facilitate use of
update
on the how
object.
These replacement functions return object
suitably modified.
Gavin Simpson
check
, a utility function for checking
permutation scheme described by how
. Comparable
extractor functions are also available; see
get-methods
.
## extract components from a "how" object hh <- how() getNperm(hh) setNperm(hh) <- 999 getNperm(hh)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.