[R] r: LEXICOGRAPHIC ORDERING

From: Clark Allan <Allan_at_stats.uct.ac.za>
Date: Fri 27 May 2005 - 23:24:05 EST


HI all

i have a seemingly simple question.

given a sequence of numbers say, 1,2,3,4,5.

i would like to get all of the possible two number arrangments
(combinations), all 3 number arrangents ... 5 number arrangements
(combinations).

i.e.

in the 2 number case:

12,13,14,15,23,24,25,34,35,45

any ideas?



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 Fri May 27 23:28:15 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:08 EST