Pattern replacement in a list of character vectors
lgsub( pattern, replacement, x, ignore.case = FALSE, perl = FALSE, fixed = FALSE, useBytes = FALSE, ... )
pattern, replacement, ignore.case, perl, fixed, useBytes | all
arguments are passed to |
---|---|
x |
|
... | additional arguments are ignored. |
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.
#> $a #> [1] "A" "B" #> #> $b #> [1] "C!:!D" #>