Re: [Rd] # symbol in input data (PR#8296)

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Thu 10 Nov 2005 - 08:33:37 GMT

scanrikpr@sbcglobal.net writes:

> Full_Name: Richard L Lozes
> Version: 2.1.1
> OS: Win XP
> Submission from: (NULL) (69.107.18.35)
>
>
> "#" appearing in a quoted string in input causes further input of that line to
> be ignored.
> Can be cured by escaping (i.e., "\#"), but in big data sets it is onerous to
> find.
>
> # should not be "special" inside a quoted string.
>
> Here is a small input file. Read it with read.csv().
>
> Title1, Title2, cHdr1, cHdr2, cHdr3
> "xyz","abc",1.0,2.0,3.0
> "xyy","ab#c",4.0,5.0,6.0
> "zyx","abc",7.0,8.0,9.0

...and what do you think the comment.char argument is for?

This is no bug.  

> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu Nov 10 19:40:05 2005

This archive was generated by hypermail 2.1.8 : Thu 10 Nov 2005 - 16:21:07 GMT