[R] how to calculate mean into a list

Weiwei Shi helprhelp at gmail.com
Tue Aug 28 23:40:51 CEST 2007


Dear Listers:

I have this task and suppose a0 is a list of 10 data.frames, I want to
calculate like this
> (a0[[1]]+a0[[2]]+..+a[[10]])/10

Thanks.

-- 
Weiwei Shi, Ph.D
Research Scientist
GeneGO, Inc.

"Did you always know?"
"No, I did not. But I believed..."
---Matrix III



More information about the R-help mailing list