enumerate.permutations: Enumerate Permutations of Items

View source: R/enumerate.permutations.R

enumerate.permutationsR Documentation

Enumerate Permutations of Items

Description

This function produces a matrix whose rows provide all possible permutations of the set {1, 2, ..., n}.

Usage

enumerate.permutations(nItems)

Arguments

nItems

The size of the set {1, 2, ..., n}, i.e., n.

Value

A matrix of integers, where each row is a permutation.

Examples

enumerate.permutations(5)


salso documentation built on July 26, 2023, 5:32 p.m.