Skip to content
Back to formatted view

Raw Message

Message-ID: <51AC6268.8020008@u-bourgogne.fr>
Date: 2013-06-03T09:31:20Z
From: Ivan Calandra
Subject: Calculating Mean
In-Reply-To: <BLU0-SMTP21565D30AFBFF7FF3838D9AC9D0@phx.gbl>

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: 
http://www.burns-stat.com/documents/tutorials/impatient-r/

HTH,
Ivan

--
Ivan CALANDRA
Universit? de Bourgogne
UMR CNRS/uB 6282 Biog?osciences
6 Boulevard Gabriel
21000 Dijon, FRANCE
ivan.calandra at u-bourgogne.fr
http://biogeosciences.u-bourgogne.fr/calandra

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.
>