[R] Clustering groups according to multiple variables

2012-10-31 Thread Matthew Ouellette
Dear R help, I am trying to cluster my data according to "group" in a data frame such as the following: df=data.frame(group=rep(c("a","b","c","d"),10),(replicate(100,rnorm(40 I'm not sure how to tell hclust() that I want to cluster according to the group variable. For example: dfclust=hc

[R] Clustering groups according to multiple variables

2012-10-31 Thread Matthew Ouellette
Dear R help, I am trying to cluster my data according to "group" in a data frame such as the following: df=data.frame(group=rep(c("a","b","c","d"),10),(replicate(100,rnorm(40 I'm not sure how to tell hclust() that I want to cluster according to the group variable. For example: dfclust=hc

[R] Clustering groups

2010-07-21 Thread syrvn
Hi, is there a way in R to identify those cluster methods / distance measures which best reflect predefined cluster groups. Given 10 observations O1...O10. Optimally, these 10 observations cluster as follows: cluster1: O1, O2, O3, O4 cluster2: O5, O6 cluster3: O7, O8, O9, O10. What I want is a