[R] export vector with write() introduces line breaks

Martin Batholdy batholdy at googlemail.com
Sat Nov 16 20:20:01 CET 2013


Hi,

I have a long vector which I want to export as a simple ascii text file via
write(1:600, file='test.txt', sep=',')

When I open the text file with my text editor I see that the data is structured in columns.
So it seems that line breaks are introduced.

How can I prevent this?


Thank you!



More information about the R-help mailing list