makelabelmatrix function

Label matrix

Label matrix

Convert class indicator into a label maxtrix.

makelabelmatrix(clust)

Arguments

  • clust: An n-dimensional vector of class partition.

Returns

  • Z: A matrix of class indicator.

Examples

cluster<-c(1,1,2,2,3,3) label_maxtrix<-makelabelmatrix(cluster)
  • Maintainer: Ziyang Lyu
  • License: GPL-3
  • Last published: 2022-10-18

Useful links