label_vec2mat {nett} | R Documentation |
Convert label vector to matrix
Description
Convert label vector to matrix
Usage
label_vec2mat(z, K = NULL, sparse = FALSE)
Arguments
z |
a label vector |
K |
number of labels in |
sparse |
whether the output should be sparse matrix |
Value
A cluster assignment matrix that follows from the label vector z
[Package nett version 1.0.0 Index]