makelabelmatrix: Label matrix

View source: R/makelabelmaatrix.R

makelabelmatrixR Documentation

Label matrix

Description

Convert class indicator into a label maxtrix.

Usage

makelabelmatrix(clust)

Arguments

clust

An n-dimensional vector of class partition.

Value

Z

A matrix of class indicator.

Examples

cluster<-c(1,1,2,2,3,3)
label_maxtrix<-makelabelmatrix(cluster)

EMMIXSSL documentation built on Oct. 18, 2022, 5:08 p.m.