vgsub: Vectorised String Replacement

Description Usage Arguments Value References

Description

A simple wrapper for gsub that replaces all patterns from pattern argument with ones in replacement over vector provided in argument x.

Usage

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

Arguments

pattern

see eponymous argument for gsub function

replacement

see eponymous argument for gsub function

x

see eponymous argument for gsub function

...

additional arguments for gsub function

Value

a character vector with string replacements

References

See original thread for more details http://stackoverflow.com/a/6954308/457898. Special thanks to user Jean-Robert for this one!



Search within the rapportools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.