mgsub: Multiple pattern gsub.

Description Usage Arguments References

Description

An extension to gsub that handles vectors of patterns and replacements, avoiding recursion problems associated with overlap at the extense of computation time.

Usage

1
mgsub(pattern, replacement, x, ...)

Arguments

pattern

Character vector of patterns to match.

replacement

Character vector of replacements for each pattern.

x

Character vector in which the gsub should be performed.

...

Additional arguments to grep.

References

http://stackoverflow.com/a/15254254/560791


andymckenzie/bayesbio documentation built on June 13, 2019, 7:01 p.m.