[R] Odp: 2^2 factorial design question

From: Petr PIKAL <petr.pikal_at_precheza.cz>
Date: Fri, 07 Nov 2008 10:35:09 +0100

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.



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. Received on Fri 07 Nov 2008 - 09:39:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 07 Nov 2008 - 10:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive