title: R creates a list, instead of a data frame
body: <p>I want to write a data frame to a file using the <code>write</code> function, however this doesnt work, because <code>data.frame()</code> creates it as a list.</p>
  
  <p>Reproductive example:</p>
  
  <pre><code>data &lt;- data.frame(cbind(1:2,3:4))
  typeof(data)
  data
  #  X1 X2
  #1  1  3
  #2  2  4
  #&gt; typeof(data)
  #[1] "list"
  </code></pre>
  
  <p>Now when I want to write to file using</p>
  
  <pre><code>write(data,"data.txt")
  </code></pre>
  
  <p>I get an error saying</p>
  
  <blockquote>
    <p>Error in cat(list(...), file, sep, fill, labels, append) : 
      argument 1 (type 'list') cannot be handled by 'cat'</p>
  </blockquote>
  
  <p>Which obviously happens because data is a list, but I dont understand why it is a list. Im running R 3.1.3</p>