[R] exaustive subgrouping or combination Dear Colleagues,

I am looking for a package or previous implemented R to subgroup and
exaustively divide a vector of squence into 2 groups.

For example:

1, 2, 3, 4

I want to have a group of
1, (2,3,4)
(1,2), (3,4)
(1,3), (2,4)
(1,4), (2,3)
(1,2,3), 4
(2,3), (1,4)
...

Can someone help me as how to implement this?  I get some imaginary problem
when the sequence becomes large.

Thanks much in advance.

-- 
Waverley @ Palo Alto

	[[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch 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.

