cluster_count {scclust} | R Documentation |
cluster_count
returns the number of clusters in a clustering.
cluster_count(clustering)
clustering |
a |
Returns an integer with the number of clusters in clustering
.
# Example scclust clustering
my_scclust <- scclust(c("A", "A", "B", "C", "B",
"C", "C", "A", "B", "B"))
cluster_count(my_scclust)
# > 3