Re: [R] read.table and missing values - solved

About this list Date view Thread view Subject view Author view

From: Prof Brian Ripley (ripley@stats.ox.ac.uk)
Date: Wed 20 Jun 2001 - 01:29:05 EST


Message-ID: <Pine.LNX.4.31.0106191626560.5984-100000@gannet.stats>

On Tue, 19 Jun 2001, Peter Breuer wrote:

> Thanks - everything is o.k. and working

[...]

> >You have set sep="\t", haven't you? The default separator is white space,
> >and that will swallow two tabs. The following had tabs in originally,
>
> This did solve the problem. I didn't set sep="\t". R read complete
> tab delimited data files nontheless and complained only when it met
> missing data.
> This confused me.

Using read.delim (same help page) might be less confusing, although I
think fill = TRUE might also cause confusion.

-- 
Brian D. Ripley,                  ripley@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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:45 EST