[R] Extracting sums for individual factors in data frames

2007-07-09 Thread Norm.Good
Try this I used today aggregate(data, by=list(factor.name=data$FACTOR.NAME), sum) Norm Good CMIS/e-Health Research Centre A joint venture between CSIRO and the Queensland Government Lvl 20, 300 Adelaide Street BRISBANE QLD 4000 PO Box 10842 Adelaide Street BRISBANE QLD 4000 Ph: 07 3024

[R] Setting a minimum number of observations within an individual cluster

2007-06-12 Thread Norm.Good
Hi I'm trying to cluster a continuous dataset with a varying number of clusters and with a restriction that each cluster must have more than 'x' number of observations. I have tried the clara function, using silhouette to give me the neighbouring cluster mediod of each observation, then mergi