[R] Simple averaging question

Ista Zahn istazahn at gmail.com
Thu Jan 7 19:50:21 CET 2010


Assuming the data frame is named "X":

mean(X[c(5,8), "Time"])

See ?'[' for details.

-Ista

On Thu, Jan 7, 2010 at 1:20 PM, lse1986 <sam_eden1986 at yahoo.co.uk> wrote:
>
> I have the following data:
>
> http://i.imagehost.org/0650/Untitled2.jpg
>
> How would i average, say the 5th and the 8th entries?
> Thanks in advance
> --
> View this message in context: http://n4.nabble.com/Simple-averaging-question-tp1009086p1009086.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>



-- 
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org



More information about the R-help mailing list