Re: [R] read.table() versus scan()

2011-01-28 Thread Tal Galili
Hi Roark, From my experience, this error is because of problem with reading the headers, or problem with the sep parameter in read.table Try something like read.table(... ,sep =\t) (This is for tab delimited files) Others might give more ideas. Cheers, Tal Contact

Re: [R] read.table() versus scan()

2011-01-28 Thread Gabor Grothendieck
On Thu, Jan 27, 2011 at 11:23 PM, H Roark hrbuil...@hotmail.com wrote: I need to import a large number of simple, space-delimited text files with a few columns of data each. The one quirk is that some rows are missing data and some contain junk text at the end of each line. A typical file

Re: [R] read.table() versus scan()

2011-01-28 Thread Peter Ehlers
On 2011-01-27 20:23, H Roark wrote: I need to import a large number of simple, space-delimited text files with a few columns of data each. The one quirk is that some rows are missing data and some contain junk text at the end of each line. A typical file might look like: a b c d 1 2 3 x 4 5

[R] read.table() versus scan()

2011-01-27 Thread H Roark
I need to import a large number of simple, space-delimited text files with a few columns of data each. The one quirk is that some rows are missing data and some contain junk text at the end of each line. A typical file might look like: a b c d 1 2 3 x 4 5 6 7 8 9 x 1 2 3 x c c 4 5 6 x 7 8 9 x