powered by
A full factorial design is generated.
gen.factorial(levels, nVars=0, center=TRUE, factors="none",varNames=NULL)
A vector of levels for the variables. May be an integer if nVars is specified.
The number of variables.
If TRUE, all non-factors will be centered.
If "all", all variables are factors, otherwise a vector of the variable numbers of the variables that are to be factors.
The names of the variables.
A factorial design in a data.frame.
# NOT RUN { dat<-gen.factorial(3,3) dat<-gen.factorial(c(3,2,3)) dat<-gen.factorial(3,3,factors="all") dat<-gen.factorial(3,3,varNames=c("A","B","C")) # }
Run the code above in your browser using DataLab