[R] cutree using a vector for h giving meaningless results

Beatrice Kulli Honauer kulli at ito.umnw.ethz.ch
Tue Jan 22 18:00:22 CET 2002


I try to use the routine cutree to cut a tree (created by hclust) into
several groups by specifiing the hight of the cut.

a<-1:10
cutree(tree, h=a*100)

The Matrix with group meberships returned is ok for most of the hights, but
in some cases (as for example h=800 and h=900) the results don't make sense
(group membership=0 or 58965231, it looks like the range of data allowed by
the data type was too small). It's interesting that h=1000 gives proper
results again. When I run the same for only one value of h (for example
800), the results are ok again. I did not use hights higher than the
maximum hight of the tree!

Thank you for any help!
Beatrice Kulli

----------------------------------------------
Beatrice Kulli
Institute of Terrestrial Ecology, Soil Physics
ETH Zuerich
Grabenstrasse 3, CH-8952 Schlieren
Phone: +41 1 633 60 17; Fax: +41 1 633 11 23
http://www.ito.umnw.ethz.ch/SoilPhys/
----------------------------------------------


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list