From p.dalgaard at biostat.ku.dk  Thu Nov 10 09:33:37 2005
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: 10 Nov 2005 09:33:37 +0100
Subject: [Rd] # symbol in input data (PR#8296)
In-Reply-To: <20051110051211.64B8D265B9@slim.kubism.ku.dk>
References: <20051110051211.64B8D265B9@slim.kubism.ku.dk>
Message-ID: <x2irv09a1q.fsf@turmalin.kubism.ku.dk>

scanrikpr at 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 at 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 at biostat.ku.dk)                  FAX: (+45) 35327907



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