uperm returns permutation matrix.
uperm
uperm(d)
Vector
For a given list of numbers, this function outputs a matrix, where each row is a unique permutation of the list.
# NOT RUN { uperm(c(1, 2)) # }
Run the code above in your browser using DataLab