randomize.design(design, restrict, cp.place)
data frame
which has only
factor
objects.
"ends"
= half at beginning, half at end of blocks (design),
"first"
= at the beginning of the blocks (design),
"last"
= at the end of
the blocks (design),
"spaced"
= third at beginning, third at middle
and third at end of blocks (design), and
"random"
= randomly spaced.
This argument is only applicable with designs generated with
design.digest
, where center points are encoded in the design. By
default, the
cp.place
used to generate the design is retained by
randomize.design
. This argument allows you to change the placing of
the center points when printing a design for laboratory use.
design
is returned with the rows reordered. The rows are not
renamed. An attribute
"order"
is added to the design, which is the
vector that specifies the new row order (the output of the function
randomize
).
This function helps output a design for use in the laboratory setting,
where it is extremely important that experimental run order be
randomized. The design is easily printed by
worksheet
.
The design can be returned to standard order for the analysis phase
using
sort.design
.
a.design <- design.digest("ff0508") aran.des <- randomize.design(a.design) worksheet(aran.des, response = "yield", graphics = T)