Re: [R] Scan document including "\n"

2008-06-17 Thread Jorge Ivan Velez
Hi there, Try this: your.file=read.table(textConnection(" "),header=FALSE) paste(your.file$V1,"\n",collapse="",sep="") [1] "\n\n\n\n" HTH, Jorge On Tue, Jun 17, 2008 at 1:01 PM, ppatel3026 <[EMAIL PROTECTED]> wrote: > > How do you read in a whole file while preserving end of line "\n" > c

[R] Scan document including "\n"

2008-06-17 Thread ppatel3026
How do you read in a whole file while preserving end of line "\n" characters? Basically, read in a whole file as one string. Ex: After this file is read into a variable, it should really look like "\n\n\n\n" -- View this message in context: http://www.nabble.com/Scan-document-including-