title: Get maximum value from all matrices in a list
body: <p>I've created a List of matrices, and now I want to get the maximum values of row in all matrices, how do I get them?</p>
  
  <p>Here is the code for the list:</p>
  
  <pre><code>i &lt;- 1
  tryList &lt;- list()
  treeList &lt;- list()
  accList &lt;- list()
  
  for(t_mtry in 1:40){
    for(t_ntree in 20:300{
      rf &lt;- randomForest(class ~., data=training, mtry=t_mtry, ntree=t_ntree)
      tbl &lt;- table(predicted = predict(rf,evalSet,type="class"),actual=evalSet$class)
  
      #get the accuracy of the classification as a list
      retVal &lt;- accuracy(tbl)
  
      tryList &lt;- c(tryList,t_mtry)
      treeList &lt;- c(treeList,t_ntree)
      accList &lt;- c(accList,mean(retVal))
     }
     matrixList[[i]] &lt;- matrix(c(tryList,treeList,accList),length(accList)
     i &lt;- i + 1
     tryList &lt;- list()
     treeList &lt;- list()
     accList &lt;- list()
   }
  </code></pre>
  
  <p>Now I want to the maximum values of the accList from every matrix.
  if I have one matrix i use:</p>
  
  <pre><code>lapply(matrix,max)
  max(unlist(matrix[,3]))
  </code></pre>
  
  <p>But how can I use it with the list?</p>