<br><font size=2 face="sans-serif">Dear all,</font>
<br>
<br><font size=2 face="sans-serif">I found that the new feature of the comment.char="#" argument in the read.table function truncated my data while the data set actually contains '#'. We analyze lot of data that contain '#'. This is really annoying and it is also not compatible earlier version of R. I searched the R archive and found the following message for the scan function. Is it possible to change the default to " " in read.table ?</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br>
<br><font size=2 face="sans-serif">Ren</font>
<br>
<br>
<br>
<br><font size=3 face="Times New Roman">On Tue, 19 Feb 2002, Steve Cassidy wrote: </font>
<p><font size=3 face="Times New Roman"><i>> I've just discovered the recent addition of the comment.char arg to scan, a <br>
> useful feature no doubt but the default value of # rather than "" breaks my <br>
> code which looks for # as a delimeter in a file and provides a messy <br>
> incompatability with earlier versions of R and with Splus. <br>
> <br>
> Is there any chance that this default could be changed to ""? </i></font>
<p><font size=3 face="Times New Roman">It already has been. The NEWS for R-patched / R-devel says: </font>
<p><font size=3 face="Times New Roman"> o The default has been changed to scan(comment.char="") for <br>
consistency with earlier code (as in the previous item). </font>
<p><font size=3 face="Courier New">-- <br>
Brian D. Ripley, </font><a href="mailto:ripley@stats.ox.ac.uk?Subject=Re:%20[R]%20scan(...comment.char="#")%20breaks%20my%20code%2526In-Reply-To=%2526lt;Pine.GSO.4.44.0202190715370.26674-100000@auk.stats>"><font size=3 color=blue face="Courier New"><u>ripley@stats.ox.ac.uk</u></font></a><font size=3 face="Courier New"><br>
Professor of Applied Statistics, </font><a href=http://www.stats.ox.ac.uk/~ripley/><font size=3 color=blue face="Courier New"><u>http://www.stats.ox.ac.uk/~ripley/</u></font></a><font size=3 face="Courier New"><br>
University of Oxford, Tel: +44 1865 272861 (self)<br>
1 South Parks Road, +44 1865 272860 (secr)<br>
Oxford OX1 3TG, UK Fax: +44 1865 272595<br>
</font>