Hi,
  
  I am doing cluster analysis and get back the vector with the clusters.  Now I 
want to access the original data according to the assigned  clusters. 
Therefore, I need the row names of the $cluster vector. Right  now I do the 
following what works but seems a little awkward:
  dat[rownames(as.data.frame(which(kcl$cluster==1))),]
  Is there maybe a better or "correct" way to do this?
  
  Thanks a lot!
    Werner
  
                
---------------------------------


        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to