[R] Element by element mean of a list of matrices

hihi v.p.mail at freemail.hu
Tue Mar 15 21:17:45 CET 2011


Hi All,
is there any effiective and dense/compact method to calculate the mean of a list of - of course coincident - matrices on an element by element basis? The resulting matrix' [i, j]-th element is the mean of the list's matrices' [i, j]-th elements respectively...
Iterating by for statement is quite straightforward, but I am seeking for a more elegant solution, and my attempt with the apply family of functions did not work.

Thank you,
by
Peter



More information about the R-help mailing list