title: Fill matrix from list based on column name match from other list
body: <p>I have some data:</p>
  
  <pre><code>num.list1 &lt;- list(1,2,1,4,5)
  num.list2 &lt;- list(2,3)
  num.list3 &lt;- list(3,5,2)
  
  num.data.list &lt;- list(num.list1, num.list2, num.list3)
  
  name.list1 &lt;- list("A","B","C","D","E")
  name.list2 &lt;- list("B","C")
  name.list3 &lt;- list("A","C","E")
  
  name.data.list &lt;- list(name.list1, name.list2, name.list3)
  
  all.names &lt;- unique(unlist(name.data.list))
  
  my.matrix &lt;- matrix(data = NA, nrow = length(name.data.list), ncol =     length(all.names))
  
  colnames(my.matrix) &lt;- all.names
  </code></pre>
  
  <p>I would like to populate <code>my.matrix</code> with the values from <code>num.data.list</code> based on matching the column names of <code>my.matrix</code> with the values in <code>name.data.list</code>.</p>
  
  <p>i.e. :</p>
  
  <pre><code>      A    B    C    D    E
  
  1     1    2    1    4    5  
  
  2     NA   2    3    NA   NA
  
  3     3    NA   5   NA    2
  </code></pre>
  
  <p>Any Ideas? Thanks.</p>