label_vec2mat: Convert label vector to matrix

View source: R/utils.R

label_vec2matR 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 z

sparse

whether the output should be sparse matrix

Value

A cluster assignment matrix that follows from the label vector z


aaamini/nett documentation built on Nov. 12, 2022, 6:25 p.m.