Re: [R] Using centers of hierarchical clustering for k-means

2014-05-20 Thread marioger
Thank you very much for your help. everything works great -- View this message in context: http://r.789695.n4.nabble.com/Using-centers-of-hierarchical-clustering-for-k-means-tp4690704p4690870.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Using centers of hierarchical clustering for k-means

2014-05-16 Thread Sarah Goslee
Well, you could use the group membership from the clustering along with, for instance, aggregate() to get the mean values for each cluster, and pass those to kmeans() using the centers argument as described in the help file. Unless you want medoids instead of centroids, since you didn't specify?

Re: [R] Using centers of hierarchical clustering for k-means

2014-05-16 Thread David L Carlson
elp-boun...@r-project.org] On Behalf Of marioger Sent: Friday, May 16, 2014 7:29 AM To: r-help@r-project.org Subject: [R] Using centers of hierarchical clustering for k-means Hi, i have the following problem: I am using k-means algorithm for clustering. But instead of using randomized centers

[R] Using centers of hierarchical clustering for k-means

2014-05-16 Thread marioger
Hi, i have the following problem: I am using k-means algorithm for clustering. But instead of using randomized centers, I would like to use centers created by hierarchical clustering. So I want to apply "hclust" on my data set (in this case the iris data), getting a solution by "cutree", calculati