Extract the classes in a partition or hierarchy.
cl_classes(x)
an R object representing a partition or hierarchy of objects.
A list inheriting from "cl_classes_of_objects"
of vectors
indicating the classes.
For partitions, the classes are the equivalence classes (“clusters”) of the partition; for soft partitions, the classes of the nearest hard partition are used.
For hierarchies represented by trees, the classes are the sets of objects corresponding to (joined at or split by) the nodes of the tree.