I have several thousand distance matrices (converted from a matrix using as.dist()) and would like to compute the mean, sd, median etc for each matrix element.
To illustrate:
Matrix.A
1
7 1
5 2 1
Matrix.B
2
3 4
1 1 3
etc...
For example, if I would like to have the sum of the individual elements I could do:
Sum.Matrix <- Matrix.A + Matrix.B
Sum.Matrix
3
10 5
6 3 4
But what if I have thousands of these matrices? And how can I compute not just the sum for each element but also means, sd etc? All matrices are stored in a single list.