`getPARTlabels()` takes the output of the recursive clustering (PART) and assigns final cluster labels to each observation. Clusters smaller than `minSize` are labeled as 0 (treated as outliers).

getPARTlabels(clusters, minSize)

Arguments

clusters

A matrix (or vector) indicating the tentative clusters from PART. Each column corresponds to a recursive split, with 1 indicating membership in that subcluster.

minSize

Minimum number of observations required for a cluster to be considered valid. Clusters smaller than this are treated as outliers.

Value

An integer vector of cluster labels for each observation. Outliers are labeled 0.