lgsub | R Documentation |
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.
x <- list(a=c("A", "B"), b=c("C,D")); lgsub(",", "!:!", x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.