generatePermutations: Generate all permutations of (1, ..., K)

View source: R/generatePermutations.R

generatePermutationsR Documentation

Generate all permutations of (1, ..., K)

Description

It generates a matrix containing all permutations of (1, ..., K).

Usage

generatePermutations(K)

Arguments

K

integer value of K.

Value

A matrix of dimension K! \times K with generated permutations in rows.

Author(s)

Arnošt Komárek arnost.komarek@mff.cuni.cz

Examples

generatePermutations(1)
generatePermutations(2)
generatePermutations(3)
generatePermutations(4)

mixAK documentation built on Sept. 25, 2023, 5:08 p.m.