title: cbind values to sublists in R
body: <p>I have two matrices in a list:</p>
  
  <pre><code>colList &lt;- list()
  colList[["V1"]] &lt;- as.matrix(c("asd", "asd", "asd"))
  colList[["V2"]] &lt;- as.matrix(c("das", "das", "das"))
  </code></pre>
  
  <p>And I want to cbind the values of a data.frame <code>value.frame$keyID</code> to each sublist. The first value (2000) to the first sublist, the second value (3000) to the second sublist.</p>
  
  <p>Here the value.frame:</p>
  
  <pre><code>value.frame &lt;- data.frame(keyID =c("2000", "3000"))
  </code></pre>
  
  <p>The result should look like this:</p>
  
  <pre><code>colList &lt;- list()
  colList[["V1"]] &lt;-  matrix(c("asd", "asd", "asd", 2000, 2000, 2000), 
                                  nrow=3, 
                                  ncol=2)
  
  colList[["V2"]] &lt;-  matrix(c("das", "das", "das", 3000, 3000, 3000), 
                                 nrow=3, 
                                 ncol=2)
  </code></pre>
  
  <p>I tried it with the following code, but the result is not the desired one. Hope someone can help me. </p>
  
  <pre><code>mapply( cbind, colList, paste(value.frame[,1])) 
  </code></pre>