Convert a generic hclust object to a protoclust object.
as.protoclust(hc, protos)
A generic hclust object using any linkage.
A vector of prototype label indices for each branch in the dendrogram. The i-th element is the index of the prototype corresponding to the cluster formed on the i-th merge.
An object of class protoclust
with a user specified vector of representative prototypes for each cluster.
This object is just like hclust
but has an identical element:
identical to the values returned by hclust
a vector of length n - 1. The i-th element is the index of the prototype corresponding to the cluster formed on the i-th merge.