[R] Permutations
    Jordi Altirriba Gutiérrez 
    altirriba at hotmail.com
       
    Tue Jul 13 21:07:00 CEST 2004
    
    
  
Dear R users,
Im a beginner user of R and Ive a problem with permutations that I dont 
know how to solve. Ive 12 elements in blocks of 3 elements and I want only 
to make permutations inter-blocks (no intra-blocks) (sorry if the 
terminology is not accurate), something similar to:
1 2 3 | 4 5 6 | 7 8 9 | 10 11 12   ----------1st permutation
1 3 2 | 4 5 6 | 7 8 9 | 10 11 12   NO
   -  -
3 2 1 | 4 5 6 | 7 8 9 | 10 11 12   NO
-  -  -
1 2 4 | 3 5 6 | 7 8 9 | 10 11 12   YES-----2nd permutation
      -    -
4 5 6 | 1 2 3 | 7 8 9 | 10 11 12   YES-----3rd permutation
-  -  -   -  -  -
4 5 6 | 2 1 3 | 7 8 9 | 10 11 12   NO
           -  -
....
  Thanks for your time,
Jordi Altirriba
Ph D student
Hospital Clinic - Barcelona - Spain
MSN Motor. http://motor.msn.es/researchcentre/
    
    
More information about the R-help
mailing list