permsn: Generate All Permutations of x Elements Taken m at a Time

Description Usage Arguments Value Author(s) See Also Examples

Description

Generate all permutations of the elements of x taken m at a time. If x is a positive integer, returns all permutations of the elements of seq(x) taken m at a time.

Usage

1
permsn(x, m)

Arguments

x

vector source for permutations, or integer n for x <- seq(n).

m

number of elements to permute.

Value

a list or array (in nondegenerate cases).

Author(s)

G. Jay Kerns gkerns@ysu.edu, modified from the combn function in the package utils.

See Also

combn

Examples

1
permsn(3,2)

GabauerDavid/WVPU documentation built on June 1, 2019, 3:52 a.m.