title: Confusing error in R: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 1 did not have 42 elements)
body: <p>I am new to R. I am trying to read in a "CSV" file that is space-space delimited. The file does not have headers. It looks like this </p>
  
  <pre><code>Element1 Element2
  Element5 Element6 Element7
  </code></pre>
  
  <p>I am trying to read it in like this: </p>
  
  <pre><code>&gt; mydata &lt;- read.table("/PathTo/file.csv")
  Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  : 
    line 1 did not have 14 elements
  </code></pre>
  
  <p>Why does it expect 14 elements in the first row? How do I import this file?</p>