permutations: Generate Permutations of the Integers 1..n

View source: R/ggparallel_specific_utils.R

permutationsR Documentation

Generate Permutations of the Integers 1..n

Description

Creates a matrix of all permutations for the integers from 1 to n.

Usage

permutations(n)

Arguments

n

Number of elements to permute.

Value

A matrix where each row is a permutation of 1..n.


ggEDA documentation built on Sept. 9, 2025, 5:45 p.m.