Learn R Programming

dse (version 2020.2-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.

Examples

Run this code
# NOT RUN {
    permute(4)
# }

Run the code above in your browser using DataLab