Skip to content
Prev 199323 / 398503 Next

Calculate Mean for each Treatment/Trial Interaction in DF

On Nov 5, 2009, at 7:53 PM, jimdare wrote:
That's rather difficult to accept, since State is not a column name of  
df.
Try:

  aggregate(df$Angle, list(df$Treatment,
   df$Trial), sum)
   Group.1 Group.2        x
1       C       1 105.4910
2       U       1 125.0236
3       C       2 163.5198
4       U       2 163.1040
5       C       3 152.6468
6       U       3 142.7759
David Winsemius, MD
Heritage Laboratories
West Hartford, CT