cluster_count {scclust}R Documentation

Count the number of clusters

Description

cluster_count returns the number of clusters in a clustering.

Usage

cluster_count(clustering)

Arguments

clustering

a scclust object containing a non-empty clustering.

Value

Returns an integer with the number of clusters in clustering.

Examples

# Example scclust clustering
my_scclust <- scclust(c("A", "A", "B", "C", "B",
                        "C", "C", "A", "B", "B"))

cluster_count(my_scclust)
# > 3


[Package scclust version 0.2.4 Index]