[R] Collapse UP a dendrogram

jshrager jshrager at stanford.edu
Fri Oct 21 02:33:19 CEST 2011


I created a dendrogram (ddg0) using hclust in the usual way. I want to
collapse UP the tree in various ways, that is, from the leaves up to the
root. Optimally, I would give the id of a member of a final split in ddg0,
and return a new ddg1 with that split collapsed. Alt, I could give a depth
to collapse up to (such that ddg1 would have n fewer levels than ddg0). That
sort of thing. I could, of course, program this myself, but it seems like
something that is so obviously needed that there is very likely to be a
package that does it already. Is there? TIA 'Jeff

--
View this message in context: http://r.789695.n4.nabble.com/Collapse-UP-a-dendrogram-tp3923907p3923907.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list