Match clusters to true clusters
match_clusters(data, res, nclust)data frame with 'id' and 'true_clust' columns
a clustering result that has a 'clust' tibble with 'id' and 'clust' columns
(e.g. attach res$clust <- tibble(id = ..., clust = ...) to a stats::kmeans result;
for TGL_kmeans_tidy output the 'cluster' tibble is matched by partial name)
number of clusters
data frame with matched clusters