powered by
Convert class indicator into a label maxtrix.
makelabelmatrix(clust)
A matrix of class indicator.
An n-dimensional vector of class partition.
cluster<-c(1,1,2,2,3,3) label_maxtrix<-makelabelmatrix(cluster)
Run the code above in your browser using DataLab