[R] enumerate subsets

jim holtman jholtman at gmail.com
Sun Jul 20 23:10:20 CEST 2008


Can you give a small example of what you data looks like and what you
think the output should be.  Have you looked at 'combn'?

On Sun, Jul 20, 2008 at 4:33 PM, lamack lamack <lamac_k at hotmail.com> wrote:
>
> Dear all, is there a R function that enumerate a partition of a vector of size n? (of course for n not very large).
> I would like enumerate all the (2 power n)-1 sub-sets. (2 power n)-1 since (2 power n) includes de empty subset.
>
> Best Regards.
>
> ps. It is not a homework. I never posted homework in this list.
>
> LL
>
>
>
> _________________________________________________________________
> Cansado de espaço para só 50 fotos? Conheça o Spaces, o site de relac[[elided Hotmail spam]]
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> 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.
>
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?



More information about the R-help mailing list