Re: [R] grep and gsub on backslash and quotes

2003-08-14 Thread Peter Dalgaard BSA
Simon Fear [EMAIL PROTECTED] writes: The following code works, to gsub single quotes to double quotes: line - gsub(', '', line) (that's a single quote within doubles then a double within singles if your viewer's font is not good). But The R Language Manual tells me that Quotes and

RE: [R] grep and gsub on backslash and quotes

2003-08-14 Thread Simon Fear
Thank you. Single backslash version, first thing I tried (I thought) works just fine when I copy and paste, ergo I must have got confused by some stupid typo of mine. Sorry to waste everyone's time over this. (Still, I am probably not the only confused user when it comes to RE handling - I hope

Re: [R] grep and gsub on backslash and quotes

2003-08-14 Thread Prof Brian Ripley
On Tue, 12 Aug 2003, Simon Fear wrote: The following code works, to gsub single quotes to double quotes: line - gsub(', '', line) (that's a single quote within doubles then a double within singles if your viewer's font is not good). But The R Language Manual tells me that Quotes