MixSim (version 1.1-7)

perms: Permutations

Description

Returns all possible permutations given the number of elements.

Usage

perms(n)

Value

Returns a matrix containing all possible permutations.

Arguments

n

Number of elements.

Author

Volodymyr Melnykov, Wei-Chen Chen, and Ranjan Maitra.

See Also

ClassProp.

Examples

Run this code

perms(3)

Run the code above in your browser using DataLab