Skip to content
Prev 278981 / 398503 Next

permutate elements in a vector

Wendy wrote
You want permutations not combinations.

library(e1071)
permutations(4) * 10

or 

library(gtools)
A <- 10*(1:4)
permutations(4,4,A)

Berend


--
View this message in context: http://r.789695.n4.nabble.com/permutate-elements-in-a-vector-tp4127821p4128227.html
Sent from the R help mailing list archive at Nabble.com.