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_eden1...@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@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 ______________________________________________ R-help@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.