title: Append a data frame to a list
body: <p>I'm trying to figure out how to add a data.frame or data.table to the first position in a list.</p>
  
  <p>Ideally, I want a list structured as follows:</p>
  
  <pre><code>List of 4
   $  :'data.frame':  1 obs. of  3 variables:
    ..$ a: num 2
    ..$ b: num 1
    ..$ c: num 3
   $ d: num 4
   $ e: num 5
   $ f: num 6
  </code></pre>
  
  <p>Note the data.frame is an object within the structure of the list. </p>
  
  <p>The problem is that I need to add the data frame to the list after the list has been created, and the data frame has to be the first element in the list. I'd like to do this using something simple like <code>append</code>, but when I try: </p>
  
  <pre><code>append(list(1,2,3),data.frame(a=2,b=1,c=3),after=0)
  </code></pre>
  
  <p>I get a list structured:</p>
  
  <pre><code>str(append(list(1,2,3),data.frame(a=2,b=1,c=3),after=0))
  List of 6
   $ a: num 2
   $ b: num 1
   $ c: num 3
   $  : num 1
   $  : num 2
   $  : num 3
  </code></pre>
  
  <p>It appears that R is coercing data.frame into a list when I'm trying to <code>append</code>. How do I prevent it from doing so? Or what alternative method might there be for constructing this list, inserting the data.frame into the list in position 1, after the list's initial creation.</p>