powered by
lsub returns a list of the same length as replacement, each element of which is the result of applying gsub to x using lapply.
lsub
replacement
gsub
x
lapply
lsub(x, replacement = NULL, pattern = "{C}", fixed = TRUE, ...)
A character vector where matches are sought.
a character vector of length 1 or more. Each element is applied to x in turn. Default: NULL
A character string containing a regular expression (or character string when fixed = TRUE). Default: '{C}'.
fixed = TRUE
'{C}'
logical. If TRUE, pattern is a string to be matched as is. Default: TRUE
Parameters passed on to gsub.
A list of results returned by gsub.
# NOT RUN { lsub("a{C}", 1:3) # }
Run the code above in your browser using DataLab