multiSubstitute: Multiple Substitutions

View source: R/string.R

multiSubstituteR Documentation

Multiple Substitutions

Description

apply multiple substitutions on a vector of character. For each element in replacements gsub is called with the element name being the pattern and the element value being the replacement.

Usage

multiSubstitute(strings, replacements, ..., dbg = FALSE)

Arguments

strings

vector of character

replacements

list of pattern = replacement pairs.

...

additional arguments passed to gsub

dbg

if TRUE (the default is FALSE) it is shown which strings were replaced


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.