label_vec2mat {nett} | R Documentation |
Convert label vector to matrix
label_vec2mat(z, K = NULL, sparse = FALSE)
z |
a label vector |
K |
number of labels in |
sparse |
whether the output should be sparse matrix |
A cluster assignment matrix that follows from the label vector z