[R] Reading T and F as strings
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Jul 31 09:49:36 CEST 2007
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 AT&T (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 them as strings?
Set 'colClasses' to a vector of "character", just as the help file
for read.table says.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list