title: Reading CSV file to dataframe in r
body: <p>I have the following CSV file:</p>
  
  <pre><code>D1                Diff
  20/11/2014 16:00    0
  20/11/2014 17:00    0.01
  20/11/2014 18:00    0.04
  20/11/2014 19:00    0.03
  </code></pre>
  
  <p>Where D1 is a date with time. When I use the following command:</p>
  
  <pre><code>ts1&lt;-read.csv (file.choose(), row.names=1 )
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>&gt; head (ts1)
                   Diff
  20/11/2014 16:00 0.00
  20/11/2014 17:00 0.01
  20/11/2014 18:00 0.04
  20/11/2014 19:00 0.03
  20/11/2014 20:00 0.02
  20/11/2014 21:00 0.03
  </code></pre>
  
  <p>Why does the first column header (D1) is ignored?</p>