Skip to content

read.table with header and text data

2 messages · Laura Holt, Rich FitzJohn

#
Hi R!

I am reading in a text file which has one column of alpha data and 5 columns 
of numeric data.

There is a header row.

I would like the alpha data column to just be character rather than factor.

Is there a way to do this, please?  I'm thinking that it might be I() but 
can't figure out exactly how.

Thanks,
Laura
mailto: lauraholt_983 at hotmail.com
R 2.0.1 Windows
#
See ?read.table, especially the argument "as.is".

Cheers,
Rich
On Apr 7, 2005 9:55 AM, Laura Holt <lauraholt_983 at hotmail.com> wrote: