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

scanrikpr@sbcglobal.net scanrikpr at sbcglobal.net
Thu Nov 10 06:12:11 CET 2005


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



More information about the R-devel mailing list