View source: R/planor2design.r
planor2design | R Documentation |
function to convert matrix, data frame or object of class planordesign to class design (allowing use of convenience functions, particularly plotting with mosaic plots)
data2design(x, quantitative = rep(FALSE, ncol(x)), ...)
planor2design(x, ...)
x |
an object of class |
quantitative |
a logical vector, indicating which factors are quantitative; |
... |
currently not used |
For matrices and data frames, an unreplicated and unrandomized design is
assumed (not crucial, but the some entries of the design.info
attribute
and the entire run.order
attribute of the result will
be wrong otherwise). Per default, all factors are treated as qualitative and
thus made into factors, if they are not factors already.
Items of the S4 class planordesign
are regular factorial designs
created by package planor (the designs itself is in the slot design
).
Function planor2design
transforms them into objects of the S3 class
design
; currently, only the most basic information is included
(nunit and the factor information);
the design is assumed to be unrandomized and unreplicated.
an object of class design
with the type
and
creator
element of design.info
given as external
or planor
. For designs of type planor
, the generators
element of the design.info
attribute contains the designkey
from the original planor
design.
Ulrike Groemping
See also: the planordesign
class of package planor (if that package is available),
design
, plot.design
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.