[R] read.table and missing values - solved

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jun 19 17:29:05 CEST 2001


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 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 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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list