gsub_many: Recursive substitution

View source: R/helpers.R

gsub_manyR Documentation

Recursive substitution

Description

Applies gsub() from multiple patterns to multiple replacements with 1:1 mapping.

Usage

gsub_many(x, pattern_vector, replacement_vector, ...)

Arguments

x

A character vector.

pattern_vector

A character vector.

replacement_vector

A character vector.

...

Options passed onto gsub() call.

Value

Returns multiple expression with substituted elements


CausalQueries documentation built on June 22, 2024, 6:50 p.m.