Is there a character function like sub () where I can replace multiple strings in a single line of code because I've tried sub(c(), c(), txt) But I got the following warning "Warning in sub() : argument 'pattern' has length > 1 and only the first element will be used"