1\name{planor2design}
2\alias{data2design}
3\alias{planor2design}
4
5%- Also NEED an '\alias' for EACH other topic documented here.
6\title{ Convert matrix, data frame or object of class planordesign
7to object of class design }
8\description{
9  function to convert matrix, data frame or object of class planordesign to class design
10  (allowing use of convenience functions, particularly plotting with mosaic plots)
11}
12\usage{
13data2design(x, quantitative = rep(FALSE, ncol(x)), ...)
14planor2design(x, ...)
15}
16\arguments{
17  \item{x}{ an object of class \code{data.frame}, \code{matrix}
18    (function \code{data2design}) or \code{planordesign} }
19  \item{quantitative}{ a logical vector, indicating which factors are quantitative;\cr
20     defaults to all factors being qualitative}
21  \item{\dots}{currently not used}
22}
23\details{
24    For matrices and data frames, an unreplicated and unrandomized design is
25    assumed (not crucial, but the some entries of the \code{design.info} attribute
26    and the entire \code{run.order} attribute of the result will
27    be wrong otherwise). Per default, all factors are treated as qualitative and
28    thus made into factors, if they are not factors already.
29
30    Items of the S4 class \code{planordesign} are regular factorial designs
31    created by package \pkg{planor} (the designs itself is in the slot \code{design}).
32    Function \code{planor2design} transforms them into objects of the S3 class
33    \code{design}; currently, only the most basic information is included
34    (nunit and the factor information);
35    the design is assumed to be unrandomized and unreplicated.
36}
37\value{
38     an object of class \code{\link{design}} with the \code{type} and
39     \code{creator} element of \code{design.info} given as \code{external}
40     or \code{planor}. For designs of type \code{planor}, the \code{generators}
41     element of the \code{design.info}
42     attribute contains the \code{designkey} from the original \code{planor} design.
43}
44\author{ Ulrike Groemping }
45\seealso{ See also: \code{\link[planor:planordesign-class]{planordesign}},
46    \code{\link{design}}, \code{\link{plot.design}}
47    }
48
49% Add one or more standard keywords, see file 'KEYWORDS' in the
50% R documentation directory.
51\keyword{ array }
52\keyword{ design }% __ONLY ONE__ keyword per line
53