Generate all distinct permutations of a vector
Generate all distinct permutations of a vector
permutations(x)
x |
vector to permute |
A matrix of all distinct permutations (by row)
permutations(LETTERS[1:4])
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.