[R] How to represent pure linefeeds chr(10) under R for Windows
Thomas Lumley
tlumley at u.washington.edu
Wed Nov 5 19:47:17 CET 2003
On Wed, 5 Nov 2003, Jens [ISO-8859-1] Oehlschlägel wrote:
>
>
> Brian, Simon,
>
> Thanks for your quick answers. Unfortunately neither \n nor \012 works.
> Under R for Windows (tried on 1.8.0 and 1.5.1) they are automatically converted
> to chr(13)+chr(10).
>
You may have to write as a binary file to get this to work. I would try
opening a binary file connection and passing it to write.csv, but that
might mess up the real line endings.
-thomas
More information about the R-help
mailing list