title: R Inserting a Dataframe/List into a Dataframe Element
body: <p>I'd like to insert a dataframe into a dataframe element, such that if I called:<code>df1[1,1]</code> I would get:</p>
  
  <pre><code>[A B]
  [C D]
  </code></pre>
  
  <p>I thought this was possible in R but perhaps I am mistaken. In a project of mine, I am essentially working with a 50x50 matrix, where I'd like each element to contain column of data containing numbers and labeled rows.</p>
  
  <p>Trying to do something like <code>df1[1,1] &lt;- df2</code> yields the following warning</p>
  
  <blockquote>
    <p>Warning message:
    In <code>[&lt;-.data.frame</code>(<code>*tmp*</code>, i, j, value = list(DJN.10 = c(0, 3,  :
      replacement element 1 has 144 rows to replace 1 rows</p>
  </blockquote>
  
  <p>And calling <code>df1[1,1]</code> yields <code>0</code> . I've tried inserting the data in various ways, as with <code>as.vector()</code> and <code>as.list()</code> to no success.</p>
  
  <p>Best,</p>