[R] Reading T and F as strings

2007-07-31 Thread David Rowntree
Hi, I am trying to read a series of stock tickers into R, and I'm running into trouble with Ford (F) and the old ATT (T). Read.table seems to interpret these as boolean values instead of strings, even when I set colColumns to a vector of character(0)'s. Is there a way to convince it to read

Re: [R] Reading T and F as strings

2007-07-31 Thread Gabor Grothendieck
Try this: Lines - Stock + T + F + DF - read.table(textConnection(Lines), header = TRUE, +colClasses = character) class(DF$Stock) [1] character On 7/30/07, David Rowntree [EMAIL PROTECTED] wrote: Hi, I am trying to read a series of stock tickers into R, and I'm running into trouble

Re: [R] Reading T and F as strings

2007-07-31 Thread Prof Brian Ripley
On Mon, 30 Jul 2007, David Rowntree wrote: Hi, I am trying to read a series of stock tickers into R, and I'm running into trouble with Ford (F) and the old ATT (T). Read.table seems to interpret these as boolean values instead of strings, even when I set colColumns to a vector of