title: Reading in a file - Warning Message
body: <p>I have a file that has 22268 rows BY 2521 columns. When I try to read in the file using this line of code:</p>
  
  <pre><code>file &lt;- read.table(textfile, skip=2, header=TRUE, sep="\t", fill=TRUE, blank.lines.skip=FALSE)
  </code></pre>
  
  <p>But I only get 13024 rows BY 2521 columns read in and the following error:</p>
  
  <blockquote>
    <p>Warning message: In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : number of items read is not a multiple of the number of columns</p>
  </blockquote>
  
  <p>I also used this command to see what rows had an incorrect number of columns:</p>
  
  <pre><code>x &lt;-count.fields(textfile, sep="\t", skip=2)
  incorrect &lt;- which(x != 2521)
  </code></pre>
  
  <p>and got back a list of about 20 rows that were incorrect.  </p>
  
  <p>Is there a way to fill these rows with NA values?</p>
  
  <p>I thought that is what the "fill" parameter does in the read.table function, but it doesn't appear so.  </p>
  
  <p>OR </p>
  
  <p>Is there a way to ignore these rows that are identified in the "incorrect" variable?</p>