[R] Combinations with two part column

From: Sofyan Iyan <sofyan.iyan_at_gmail.com>
Date: Wed 18 May 2005 - 00:53:01 EST


Dear R-helpers,
I am a beginner using R.
This is the first question in this list. My question, Is there possible to make combinations with two part column? If I have a number 1,2,3,4,5,6,7,8. I need the result something like below:

1,2,3,4,5     6,7,8
1,2,3,4,7     5,6,8
2,3,4,5,6     1,7,8
1,2,3,6,7     4,5,8
1,2,3,4,8     5,6,7
3,4,6,7,8     1,2,5

....

I would be very happy if anyone could help me. Best regards,

Sofyan



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 Received on Wed May 18 00:59:23 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:48 EST