[R] average matrices across a list

Gregory Ryslik rsaber at comcast.net
Sun Sep 12 21:40:25 CEST 2010


Hi,

I have a list of several hundred 2 dimensional matrices, where each matrix is n x m. What I need to do is that for each n,m I  need an average over all the lists. This would collapse it down to just one nxm matrix. Any easy ways to do that? As always, I'd like to avoid a for loop to keep computational time low! Thanks again everyone!

Cheers,
G


More information about the R-help mailing list