[R] Odp: 2^2 factorial design question

Petr PIKAL petr.pikal at precheza.cz
Fri Nov 7 10:35:09 CET 2008


Are you looking for expand.grid?

expand.grid(1:2, letters[1:2])

Petr Pikal
petr.pikal at precheza.cz
724008364, 581252140, 581252257


r-help-bounces at r-project.org 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 at 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.



More information about the R-help mailing list