Pattern replacement in a list of character vectors
Usage
lgsub(
pattern,
replacement,
x,
ignore.case = FALSE,
perl = FALSE,
fixed = FALSE,
useBytes = FALSE,
...
)Arguments
- pattern, replacement, ignore.case, perl, fixed, useBytes
all arguments are passed to
base::gsub()afterxis converted to a character vector.- x
listobject that contains character vectors.- ...
additional arguments are ignored.
Details
This function is a simple wrapper around base::gsub() except
it operates on a list.
Note that this function assumes the input data contains vectors and not embedded list objects.