title: Mean of each element of a list of matrices
body: <p>I have a list with three matrixes:</p>
  
  <pre><code>a&lt;-matrix(runif(100))
  b&lt;-matrix(runif(100))
  c&lt;-matrix(runif(100))
  
  mylist&lt;-list(a,b,c)
  </code></pre>
  
  <p>I would like to obtain the mean of each element in the three matrices.</p>
  
  <p>I tried: <code>aaply(laply(mylist, as.matrix), c(1, 1), mean)</code> but this returns the means of each matrix instead of taking the mean of each element as <code>rowMeans()</code> would.</p>