title: Error in read.fwf when header=TRUE
body: <p>I have simulated data that looks like this:</p>
  
  <pre><code>LastName   Date      email                                                    CreditCardNum   AgeZip  Amount
  Paul       21/02/14  Aliquam.fringilla@dolordapibus.co.uk                     4241033422900360 6738851$14.39
  Bullock      2/7/2014adipiscing.fringilla@lectusjusto.org                     5178789953524240 3336538$498.31
  Mcmahon     11/5/2013lobortis.ultrices@lacus.org                              5389589582467450 7734302$92.44
  Walters    25/09/13  consectetuer.cursus.et@sitamet.org                       5157094536097720 7794007$206.60
  Franco     17/06/13  et@disparturientmontes.ca                                 345477952996264 2415873$89.12
  </code></pre>
  
  <p>and this is how I'm attempting to import it into R, with headers:</p>
  
  <pre><code>w &lt;- c(11,10,57,16,3,5,8)
  df &lt;- read.fwf("data.txt",widths=w,stringsAsFactors=F)
  names(df) &lt;- df[1,]; df &lt;- df[-1,]
  </code></pre>
  
  <p>The reason I'm not using <code>header=T</code> is that it gives me the error:</p>
  
  <pre><code>Error in read.table(file = FILE, header = header, sep = sep, row.names = row.names,  :  more columns than column names
  </code></pre>
  
  <p>which just isn't true. I know the widths (<code>w</code>) are correct. So where is this error coming from? My solution works fine, I'd just like to understand what's happening.</p>