Re: [R] read.table bug

About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [R] read.table bug
From: Peter Dalgaard BSA (p.dalgaard@biostat.ku.dk)
Date: Fri 10 Sep 1999 - 01:00:19 EST


Message-ID: <x27lm0xh8c.fsf@blueberry.kubism.ku.dk>

Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> writes:

> So
> read.table(sep = ",")
>
> would be different from
>
> read.csv()

Yes. Or - there are many ways to do it - extend read.table with an
option, e.g. quote='"', which for all I care could be the default. The
point is that you may want the other behaviour (quote=NULL) in some
cases.

(How does CSV handle embedded quotes? Wotsit.org says that it is
system dependent, but a common convention is doubling the quote, i.e.
"abc""dfg". Others might do "abc"dfg", which is likely a bug. And some
systems use ';' or '|' as the separator.)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:08 EST