[R] read.table - replaces 'T' with 'TRUE'

peter dalgaard pdalgd at gmail.com
Mon Jan 26 23:23:17 CET 2015


> On 26 Jan 2015, at 23:10 , Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
> 
> read.table(<other args as before>, colClasses = "character")
> 
> (You might want "factor" instead of character.)

Or maybe not. I'd expect trouble with getting the levels set to c("C","A","G","T") for all columns.

Is this always one single line of CGAT? If so, scan(file, what="") might be a more straightforward approach.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list