Learn R Programming

gmmsslm (version 1.1.5)

makelabelmatrix: Label matrix

Description

Convert class indicator into a label maxtrix.

Usage

makelabelmatrix(clust)

Value

Z

A matrix of class indicator.

Arguments

clust

An n-dimensional vector of class partition.

Examples

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

Run the code above in your browser using DataLab