powered by
The function mgsub is a `multiple' version of gsub.
mgsub
gsub
mgsub(pattern, replacement, x, ...)
character vector containing regular expressions to be matched in the given character vector.
a replacement vector of the same length as pattern for matched pattern. Coerced to character if possible.
pattern
vector or NULL: the values to be matched against.
additional parameters to be passed to gsub.
A character vector of the same length as x.
x
gsub from package base.
# NOT RUN { mgsub(c("aa", "AA"), c("bb", "BB"), c("XXaaccAACC", "YYaaccAACC", "ZZaaccAACC")) # }
Run the code above in your browser using DataLab