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]]