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 6
On Thu, Jan 27, 2011 at 11:23 PM, 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:
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
Detail
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
4 matches
Mail list logo