label_vec2mat | 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.