[R] Help using cutreeHybrid

Peter Langfelder peter.langfelder at gmail.com
Thu Jun 23 21:36:16 CEST 2011


On Thu, Jun 23, 2011 at 11:19 AM, Estefania Ruiz Vargas <eruizvar at uwo.ca> wrote:
> I am using the function cutreeHybrid from the package dynamic Tree Cut and I need a list of the resulting clusters but I do not know how to get it.

Hi,

I'm the author of the package. The function returns a list whose
component 'labels' contains the cluster assignment (label) of all
clustered objects. So you can call the function, say as

cth = cutreeHybrid(myTree, ....)

and the labels are

labels = cth$labels

You can also use the function cutreeDynamic which (with default
arguments) is a wrapper for cutreeHybrid and returns just the cluster
labels.

HTH,

Peter


>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Sent from my Linux computer. Way better than iPad :)



More information about the R-help mailing list