[R] how calculate mean for each group
Spencer Graves
spencer.graves at pdf.com
Thu Oct 2 04:19:04 CEST 2003
Have you considered "aggregate"?
hope this helps. spencer graves
szhan at uoguelph.ca wrote:
>Hello, R experts:
>I got data like this:
>group duplicate treatment
>A Y 5
>A Y 3
>A N 6
>B Y 2
>B N 4
>B Y 1
>How to sort the data and calculate the average treatment value for each group
>in two level of duplicate. Results like this:
>group duplicate treatment
>A Y 4
>A N 6
>B Y 1.5
>B N 4
>Thank you in advance.
>
>Josh
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
>
More information about the R-help
mailing list