title: read.table does not import all columns even with fill = TRUE
body: <p>Essentially a machine outputs some values and I need to be able to run this script to put on the necessary headers that is then fed into another program. Unfortunately I cannot changed the format of the input or output.</p>
  
  <p>Here is my code, ive simplified it down to the minimum to replicate my error, im sure its something really simple, just has driven me insane. I have attached simplified .txt files of my inputs here <a href="https://files.fm/u/8jgde7kp" rel="nofollow noreferrer">https://files.fm/u/8jgde7kp</a></p>
  
  <pre><code>DATA &lt;- file.choose()  
  DATA &lt;- read.table(DATA, stringsAsFactors=FALSE, na.strings="--", header=FALSE, sep = "\t")
  
  HDR &lt;- file.choose()  
  HDR &lt;- read.table(HDR, stringsAsFactors=FALSE, na.strings="--", header=FALSE, sep = "\t", fill = TRUE)
  
  FULL &lt;- rbind(HDR,DATA)
  </code></pre>
  
  <p>etc etc</p>
  
  <p>The issue is that for some reason, even with Fill = True, when it reads in the headers (also generated by another program) it drops the last column and pushes it to a new row. Row 11 should in fact be the fourth column of row 10. Obviously then the rbind doesn't work each time because of the difference in columns.</p>
  
  <p><img src="https://i.stack.imgur.com/XhS5d.png" alt="image of what DATA imports">                      </p>
  
  <p>So essentially there is something wrong with how I am importing the header data, currently my work around is to go in each time and manually enter more tabs into the first row.</p>
  
  <p>Important note: The inputs will always vary in the number of columns depending on the work we are doing, but no matter what, row 10 of Header.txt and the data file will always have the same number of columns.</p>
  
  <p>Any help would be appreciated.</p>