Hello.

Somebody knows how to write in R all the permutations of a given set?
For example, is the set is {a,b,c} I want the following:
a,b,c
a,c,b
b,c,a
b,a,c
c,a,b
c,b,a

Thanks,

Arnau.
------------------------------------------------------------
Arnau Mir Torres
Edifici A. Turmeda
Campus UIB
Ctra. Valldemossa, km. 7,5
07122 Palma de Mca.
tel: (+34) 971172987
fax: (+34) 971173003
email: arnau....@uib.es
URL: http://dmi.uib.es/~arnau
------------------------------------------------------------


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to