Learn R Programming

dse (version 2014.11-1)

permute: Permute

Description

Return matrix with rows indicating all possible selections of elements from seq(M). 0 in the result indicates omit. M is usually a positive integer. M=0 gives NULL. Neg. M give -permute(abs(M)).

Usage

permute(M)

Arguments

M
An integer.

Value

  • A matrix.

concept

DSE

Examples

Run this code
permute(4)

Run the code above in your browser using DataLab