Match clusters to true clusters
match_clusters(data, res, nclust)
Arguments
- data
data frame with 'id' and 'true_clust' columns
- res
result from TGL_kmeans_tidy (must have a 'clust' tibble with 'id' and 'clust' columns)
- nclust
number of clusters
Value
data frame with matched clusters