classInd {noisySBM}R Documentation

convert a clustering into a 0-1-matrix

Description

convert a clustering into a 0-1-matrix

Usage

classInd(cl, nbClusters)

Arguments

cl

cluster in vector form

nbClusters

number of clusters

Value

a 0-1-matrix encoding the clustering


[Package noisySBM version 0.1.4 Index]