title: Multiple lines in a .csv file do not have same number of elements in R
body: <p>I am attempting to read a very large .csv file into R</p>
  
  <pre><code>OrigTotalPumping &lt;- read.table("/Users/Larry/Desktop/OrigTotalPumping/MasterOrigFt3.csv", 
                                 header=F, sep=",")
  </code></pre>
  
  <p>I get an error back </p>
  
  <blockquote>
    <p>Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  : 
     line 19437 did not have 7 elements</p>
  </blockquote>
  
  <p>So I tried to simply skip that line, but the same error occurs for multiple lines in the file, and the file is far too large to open and manually fix. For example</p>
  
  <pre><code>Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  : 
    line 2 did not have 7 elements
  </code></pre>
  
  <p>and </p>
  
  <pre><code>Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  : 
    line 19439 did not have 7 elements
  </code></pre>
  
  <p>How do I set it so it can read in this file despite this problem?</p>