[R] function for grouping

Greg Snow Greg.Snow at imail.org
Wed Jan 25 21:29:10 CET 2012


I nominate this response for the fortunes package.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of David Winsemius
> Sent: Wednesday, January 25, 2012 10:23 AM
> To: yan
> Cc: r-help at r-project.org
> Subject: Re: [R] function for grouping
> 
> 
> On Jan 25, 2012, at 12:10 PM, yan wrote:
> 
> > thanks petr,
> > what if I got 200 elements, so I have to write expand.grid(x1=1,
> > x2=1:2,
> > x3=1:3, x4=1:3, x5=1:3....x200=1:3))?
> 
> Perhaps same thing that will happen when those monks finish the Towers
> of Hanoi?
> 
> 2*3^198
> [1] 5.902533e+94
> 
> --
> 
> David Winsemius, MD
> West Hartford, CT
> 
> ______________________________________________
> 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