Are you looking for expand.grid? expand.grid(1:2, letters[1:2])
Petr Pikal [EMAIL PROTECTED] 724008364, 581252140, 581252257 [EMAIL PROTECTED] napsal dne 07.11.2008 01:53:56: > Dear R Gurus: > > How do you put together a 2^2 (or even 2^k) factorial problem, please? > > Since you have 2 levels for A and B, do you put in "A+" and "A-" as > factors, please? > > Thanks, > Edna Bell > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.