conditionCombination {designGG}  R Documentation 
Generate a matrix indicating all possible levels for environmental
factors with dimension nConditions * nEnvFactors.
This is a subfunction needed for designScore
, but is not directly used.
conditionCombination( nEnvFactors, nLevels, Level, envFactorNames )
nEnvFactors 
number of environmental factors, an integer bewteen 1 and 3.
When 
nLevels 
number of levels for each factor, a vector with each
component being integer. The length should be equal to

Level 
a list which specifies the levels for each factor in the
experiment. There are in total 
envFactorNames 
a vector with names for all environmental factor(s). For example, for an
experiment with two environmental factors of temperature and drug treatment:

Currently this function works only when nEnvFactors
is between 1 and 3.
A matrix with dimension of nConditions * nEnvFactors. Each element in the matrix indicates the levels of corresponding environmental factor.
Yang Li <yang.li@rug.nl>, Gonzalo Vera <gonzalo.vera.rodriguez@gmail.com>
Rainer Breitling <r.breitling@rug.nl>, Ritsert Jansen <r.c.jansen@rug.nl>
Y. Li, R. Breitling and R.C. Jansen. Generalizing genetical
genomics: the added value from environmental perturbation, Trends Genet
(2008) 24:518524.
Y. Li, M. Swertz, G. Vera, J. Fu, R. Breitling, and R.C. Jansen. designGG:
An Rpackage and Web tool for the optimal design of genetical genomics
experiments. BMC Bioinformatics 10:188(2009)
http://gbic.biol.rug.nl/designGG