I\'m a fan of the revalue function is plyr for substituting strings. It\'s simple and easy to remember.
revalue
plyr
However, I\'ve migrated new code to
We can do this with chartr from base R
chartr
base R
chartr("ac", "AC", x)
x <- c("a", "b", "c")