Hi everybody! Anybody knows how can I get detalied information about clusters after using hclust? The issue is that if I have some items in different clusters, I would like to get the cluster where each item is placed. Taking into account that my data set is too large, it is not useful to have the dendogram or a graphic, and really I need something like a simple table with item label and cluster name, for instance. Is it possible to do this in any way in R?
I leave a code example from I start: a<-replicate(2000, rnorm(2000))b<-hclust(as.dist(a), method="ward", members=NULL) And this is the information that I achieve: structure(list(merge = structure(c(-6L, -5L, -7L, -3L, -1L, -2L, 3L, 4L, 5L, -10L, -9L, -8L, 1L, -4L, 2L, 6L, 7L, 8L), .Dim = c(9L, 2L)), height = c(-2.16431780288644, -1.77785380974643, -1.72883152083299, -1.02930929735342, -0.957628473035096, -0.687733358846453, 1.62427849392232, 2.78818645913762, 3.01723103257677), order = c(1L, 4L, 3L, 6L, 10L, 7L, 8L, 2L, 5L, 9L), labels = NULL, method = "ward", call = quote(hclust(d = as.dist(a), method = "ward", members = NULL)), dist.method = NULL), .Names = c("merge", "height", "order", "labels", "method", "call", "dist.method"), class = "hclust") I just need the every item with its correponding cluster in a more or less organizated way. Of course, there is not problem in using different funtcions or librarys (till now I have not found anything sweeting to my needs). Advices or orientations are welcome and appreciated! Thanks in advance. AJ [[alternative HTML version deleted]] ______________________________________________ R-help@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.