mgsub {bazar} | R Documentation |
The function mgsub
is a ‘multiple’ version of gsub
.
mgsub(pattern, replacement, x, ...)
pattern |
character vector containing regular expressions to be matched in the given character vector. |
replacement |
a replacement vector of the same length as |
x |
vector or NULL: the values to be matched against. |
... |
additional parameters to be passed to |
A character vector of the same length as x
.
Theodore Lytras on StackOverflow, see http://stackoverflow.com/a/15254254/3902976
gsub
from package base.
mgsub(c("aa", "AA"), c("bb", "BB"), c("XXaaccAACC", "YYaaccAACC", "ZZaaccAACC"))