chooseMatrix: Create matrix with choose(n,m) unique rows with m ones in...

chooseMatrixR Documentation

Create matrix with choose(n,m) unique rows with m ones in each row the rest 0.

Description

Create a choose(n,m) by n matrix. The matrix has unique rows with m ones in each row and the rest zeros.

Usage

chooseMatrix(n, m)

Arguments

n

an integer

m

an integer<=n

Value

A matrix with choose(n,m) rows n columns. The matrix has unique rows with m ones in each row and the rest zeros.

Note

Used for complete enumeration when method='exact.ce' in permTS

Author(s)

M.P.Fay

See Also

permTS

Examples

chooseMatrix(5,2)

perm documentation built on Aug. 25, 2023, 1:07 a.m.