Re: [R] gsub and multiple replacements

2008-06-02 Thread Hans-Jörg Bibiko
On 02.06.2008, at 17:27, Ng Stanley wrote: I would like to replace "A B" by "A-B" and "AA (DD)" by "AA" using a single gsub. Is that possible besides using two gsub ? Could you be a bit more precisely? If you are dealing with two fix strings then you can write if

[R] gsub and multiple replacements

2008-06-02 Thread Ng Stanley
Hi, I would like to replace "A B" by "A-B" and "AA(DD)" by "AA" using a single gsub. Is that possible besides using two gsub ? Thanks Stanley [[alternative HTML version deleted]] __ R-help@r-project.org mailing list htt