Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

randcmatrix

Random partition matrix


Description

For use within regmix. Generates a random 0-1-matrix with n rows and cln columns so that every row contains exactly one one and every columns contains at least p+3 ones.

Usage

randcmatrix(n,cln,p)

Arguments

n

positive integer. Number of rows.

cln

positive integer. Number of columns.

p

positive integer. See above.

Value

An n*cln-matrix.

Author(s)

See Also

Examples

set.seed(111)
randcmatrix(10,2,1)

fpc

Flexible Procedures for Clustering

v2.2-9
GPL
Authors
Christian Hennig <christian.hennig@unibo.it>
Initial release
2020-12-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.