[R] Calculating Mean

Ivan Calandra ivan.calandra at u-bourgogne.fr
Mon Jun 3 11:31:20 CEST 2013

Hi Laura,

I think you're looking for aggregate()
See ?aggregate

If you had posted a reproducible example, I could have given you a more 
detailed answer. Learn to use the dput() function to do so.
If you're very new to R, maybe this could help you get started: 


Université de Bourgogne
UMR CNRS/uB 6282 Biogéosciences
6 Boulevard Gabriel
21000 Dijon, FRANCE
ivan.calandra at u-bourgogne.fr

Le 03/06/13 11:15, Laura Thomas a écrit :
> Hi All,
> Sorry about this quite basic, but I am very new to R.
> I have a data file which has a dependent variable (reaction time) and a couple of independent variables, one of which is coded 1-8; I want to calculate the reaction time for each of the 8 codes of the independent variable.
> Thanks for any help,
> Laura
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list