Faster way to unlist a list of large matrices?
<p>I have a list of large matrices. All these matrices have the same number of rows and I want to "unlist" them and bind all their columns together. Below is a piece of code that I wrote, but I am not sure if this is the best I can achieve in terms of computational efficiency.</p>

<pre><code># simulate
n &lt;- 10
nr &lt;- 24
nc &lt;- 8000
test &lt;- list()
set.seed(1234)
for (i in 1:n){
  test[[i]] &lt;- matrix(rnorm(nr*nc),nr,nc)
}

&gt; system.time( res &lt;- matrix( as.numeric( unlist(test) ) ,nr,nc*n) )
 user  system elapsed 
0.114   0.006   0.120 
</code></pre>