powered by
Cluster labels of a clusterings are replaced by 1:length(table(cl)).
1:length(table(cl))
norm.label(cl)
vector of cluster memberships
the clustering with normed labels.
relabel for labelling a sample of clusterings the same way
relabel
# NOT RUN { (cl <- sample(c(13,12,34), 13, replace=TRUE)) norm.label(cl) (cl <- sample(c("a","b","f31"), 13, replace=TRUE)) norm.label(cl) # }
Run the code above in your browser using DataLab