[R] scan with special separator and returns
lgygax at amath.unizh.ch
Thu Oct 15 14:56:07 CEST 1998
I would like to run the follwing command in R 0.62.2:
all.scanned <- scan ("all.txt", what= character (), sep= ";")
Now my Problem is that the character fields separated by ; also contain
tabs and returns which I would like to conserve. The tabs are properly
translated into \t but the returns are taken to be field separators too.
When I change the returns into \n in the text file they become \\n after
Is there some way around this?
By the way, are the r-lists archived?
Thanks and regards,
Lorenz Gygax LGygax at amath.unizh.ch; room: 36-L-40
Department of Applied Mathematics
University of Zuerich-Irchel
Winterthurerstr. 190; CH-8057 Zurich
voice: 41-1-635-58-52 fax: 41-1-635-57-05
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help