[R] regular expression

From: Laurent Rhelp <laurentRhelp_at_free.fr>
Date: Fri 06 Apr 2007 - 19:12:42 GMT


Dear R-List,

     I have a great many files in a directory and I would like to replace in every file the character " by the character ' and in the same time, I have to change ' by '' (i.e. the character ' twice and not the unique character ") when the character ' is embodied in "....."   So, "....." becomes '.....' and ".....'......" becomes '.....''......' Certainly, regular expression could help me but I am not able to use it.

How can I do that with R ?

Thank you very much



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat Apr 07 05:19:39 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 07 Apr 2007 - 19:30:55 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.