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

2015-01-27 Thread Brian Smith
Thanks!! On Mon, Jan 26, 2015 at 5:23 PM, peter dalgaard wrote: > > > On 26 Jan 2015, at 23:10 , Duncan Murdoch > wrote: > > > > read.table(, colClasses = "character") > > > > (You might want "factor" instead of character.) > > Or maybe not. I'd expect trouble with getting the levels set to > c

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

2015-01-26 Thread peter dalgaard
> On 26 Jan 2015, at 23:10 , Duncan Murdoch wrote: > > read.table(, 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,

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

2015-01-26 Thread Duncan Murdoch
On 26/01/2015 4:52 PM, Brian Smith wrote: > Hi, > > I had a table with 'T's in it. When I try to read the table, it replaces > all the 'T's with TRUE. Is there a way that I can retain the Ts? That only happens for columns which are all T. (You only have one row, so every T gets converted.) The

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

2015-01-26 Thread Brian Smith
Hi, I had a table with 'T's in it. When I try to read the table, it replaces all the 'T's with TRUE. Is there a way that I can retain the Ts? thanks! Sample table (test.txt): xx1 xx2 0 0 2 2 A A G G A G A A C C G G G G G G A G A A A G A G A A G G A A A G G G A G A G G G A G A G G G G G A G G G