vgsub {DIZtools} | R Documentation |
Vectorised string replacement.
Description
A simple wrapper for gsub
that replaces all
patterns from pattern
argument with ones in replacement
over vector provided in argument x
.
Usage
vgsub(pattern, replacement, x, ...)
Arguments
pattern |
see eponymous argument for |
replacement |
see eponymous argument for |
x |
see eponymous argument for |
... |
additional arguments for |
Value
a character vector with string replacements
Source
Copied from package 'rapportools'
References
See original thread for more details https://stackoverflow.com/a/6954308/457898. Special thanks to user Jean-Robert for this one!
[Package DIZtools version 1.0.1 Index]