On 27.01.2010 06:45, Steven Kang wrote:
Hi all, I am trying to replace a string containing ' (apostrophe) with "(two apostrophes not inverted commas). i.e *asdf'qwer* replaced to *asdf"qwer* Is this feasible?
gsub("'", '"', "asdf'qwer") Uwe Ligges
Thanks .
______________________________________________ R-help@r-project.org 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.