[R] function for grouping

yan jiao y.jiao at ucl.ac.uk
Tue Jan 24 18:19:42 CET 2012

Dear All,

I'm wondering if there is a R function could give me all the 
combinations of the grouping/cluster result, given the number of the groups.
3 objects: x1 x2 x3, number of groups is 2
so the result will be
group1:x1,x2; group2: x3
group1: x1;group2: x2,x3
group1: x1,x3;group2: x2

many thanks


More information about the R-help mailing list