[R] how to calculate mean into a list
jholtman at gmail.com
Wed Aug 29 02:06:24 CEST 2007
colMeans(do.call('rbind', lapply(a0, mean)))
On 8/28/07, Weiwei Shi <helprhelp at gmail.com> wrote:
> Dear Listers:
> I have this task and suppose a0 is a list of 10 data.frames, I want to
> calculate like this
> > (a0[]+a0[]+..+a[])/10
> Weiwei Shi, Ph.D
> Research Scientist
> GeneGO, Inc.
> "Did you always know?"
> "No, I did not. But I believed..."
> ---Matrix III
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
+1 513 646 9390
What is the problem you are trying to solve?
More information about the R-help