hi:
I need to extract the text contexts of top 1 group after clustering.
But I have no idea how to sort the cluster size then extract the contexts of 
top 1 clusters.

here is my cluster code:

> file <- read.csv("SiC CMP.csv", header = TRUE)
> cluster_k<-length(unique(file$Main.IPC))
> cl <- kmeans(IPC_Dtm , cluster_k)


I have tried use��

> sort(cl$size, decreasing=T)
 [1] 341 107 104  80  51  22  15  11  10   8   8   5   5   5   4   4   4   3   
3   2   2
[22]   2   2   2   2   2   2   1   1   1   1   1   1   1   1   1   1   1   1   
1   1   1
[43]   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1

But I have no idea how to extract the contexts of top 1 cluster.


Eva

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to