[R] How to generate all permutation of 0-1 sequences in R?
roger chan
rogerchan2006 at gmail.com
Sat Oct 27 22:08:07 CEST 2007
Hi, folks:
I need to generate all 0-1 sequences with given length,say,n=3, the ideal
result would be
the following matrix:
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Any help would be appreciated.
--
View this message in context: http://www.nabble.com/How-to-generate-all-permutation-of-0-1-sequences-in-R--tf4704377.html#a13446919
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list