Re: [R] Reading a file with random whitespace

2012-04-19 Thread R. Michael Weylandt
It looks like you might want to use read.fwf for fixed width files Michael On Thu, Apr 19, 2012 at 3:45 PM, John S wrote: > Dear R-users, > > I have a large data file that I am trying to read in R where the file has a > white space at the begging and at random places. The whitespace is actually

[R] Reading a file with random whitespace

2012-04-19 Thread John S
Dear R-users, I have a large data file that I am trying to read in R where the file has a white space at the begging and at random places. The whitespace is actually NA so I am trying to read the file using scan but with no success!! Please help Here are some example rows from the data file.