gforce.clust2mat {GFORCE} | R Documentation |
Takes a clustering G and constructs B(G).
gforce.clust2mat(clusters)
clusters |
length d vector. Assigns each variable or data point to a cluster. Cluster names can be numbers or strings. |
a d x d numeric array that contains the partnership matrix corresponding to clusters
.
clusters <- c(1,1,1,2,2,2,3,3) B_clust <- gforce.clust2mat(clusters)