[R] Re: Hierarchical clustering
ucgamdo@ucl.ac.uk
ucgamdo at ucl.ac.uk
Tue Sep 9 13:50:14 CEST 2003
I think are looking for the function 'cutree' from package mva
checkout its documentation:
> require(mva)
> ?cutree
pleanty of examples to do what you want.
#############################################################################
Hi R lovers!
I am using the agnes function of the package cluster to compute a
hierarchical clustering.
I'd like to know if somebody has ever developped a function which could
give the names/label of the individuals merged together with respect to the
number of cluster the user eventually wants to keep.
Namely, If I have the dendogram and I choose to cut it to get , say 5
cluster, how can I get the names of the individuals in each of the 5
clusters?
I am looking for an algorithm that could do that.
I have tried to find one using the $merge component of the agnes.object or
the $order.lab component but with no result.
If by chance it exists already...
Thank you very much.
More information about the R-help
mailing list