Generates all possible permutations of elements from a vector.
permutations(x)
x
Any kind of vector.
Adrian Dusa
permutations(1:3)