[R] How to read contents of a text file into a single string?

Dimitri Shvorob dimitri.shvorob at gmail.com
Wed Apr 28 16:27:42 CEST 2010


... Both readLines() and scan() produce a number_of_lines x 1 vector; trying
paste(s, collapse = NULL) leaves it unaffected. How can I concatenate vector
elements (lines) into a single string? 
Thank you.
-- 
View this message in context: http://r.789695.n4.nabble.com/How-to-read-contents-of-a-text-file-into-a-single-string-tp2069303p2069303.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list