title: Export a simple R dataframe to txt tsv or csv
body: <p>I am trying to do something apparently obvious, but have no way to solve it. From a dataframe in R downloaded from the web as follows I need to save the data. Here is how I do download it:</p>
  
  <pre><code>library(tseries)
  library(zoo)
  ts &lt;- get.hist.quote(instrument="DJIA", 
                       start="2008-07-01", end="2017-03-05", 
                       quote="Close", provider="yahoo", origin="1970-01-01",
                       compression="d", retclass="zoo")
  </code></pre>
  
  <p>Then, returns object "ts"  with a two columns table; the first of dates (with no header as R prefers) and the other with the "Close" value of DJIA</p>
  
  <pre><code>            &gt; ts
                    Close
      2008-07-01 11382.26
      2008-07-02 11215.51
      2008-07-03 11288.53
      2008-07-07 11231.96
      .
      .
      .
      2016-03-03 16943.90
      2016-03-04 17006.77 
  </code></pre>
  
  <p>I need this data exported in txt or similar format and import the list later; (because I will try to process health information, with no internet access) but when I try to save it; the date column with no header is missing. Additionally a "number of row" column is added. I do appologize if the question is obvious but have no other option to solve it</p>