title: Prevent R from splitting columns to rows during data import
body: <p>I have a data file with 21 rows but the no. of columns in each row are different. The first column is the header and remaining columns have numbers. </p>
  
  <p><a href="https://1drv.ms/t/s!AmwHhkcRA6qljSHzjARlqQNotiXk" rel="nofollow">Full text file is here.</a></p>
  
  <p>So, I import the file using: <code>d &lt;- read.table("data.txt", sep = " ", fill=T)</code>. But when I looked at the data using <code>view()</code>, I see that one row with a lot of columns (160,000+) is split into 3 rows. <a href="http://i.stack.imgur.com/UK1Vc.png" rel="nofollow">A picture showing this phenomenon is here.</a></p>
  
  <p>Why is R doing this? And how can I fix it so I get 21 rows? I'd appreciate any help/pointers. I am using R Studio (64 bit) on Windows 7 with 16 GB memory.</p>
  
  <p>Also, I did look around before posting but did not have much luck. The 'reshape' package seemed at first to be of some help but I couldn't really use it to suit my needs. Any tip to fix the issue during import or post-import would be appreciated. Thanks.</p>