Re: [R] write all the permutations of a set

2011-03-24 Thread Arnau Mir
Thanks a lot, Arnau. El 24/03/2011, a las 16:46, Bernd Weiss escribió: > Am 24.03.2011 11:28, schrieb Arnau Mir: >> 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 >

Re: [R] write all the permutations of a set

2011-03-24 Thread Bernd Weiss
Am 24.03.2011 11:28, schrieb Arnau Mir: 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 library(gregmisc) permutations(3, 3, letters[1:3]) gives [,1] [,2] [,3] [1,]

[R] write all the permutations of a set

2011-03-24 Thread Arnau Mir
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 Ctr