[R] read.table bug

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
09 Sep 1999 17:00:19 +0200


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._