submulti: Take a character vector and perform multiple search-replace...

View source: R/functions.R

submultiR Documentation

Take a character vector and perform multiple search-replace operations on it.

Description

Take a character vector and perform multiple search-replace operations on it.

Usage

submulti(
  xx,
  searchrep,
  method = c("partial", "full", "exact", "starts", "ends", "startsends")
)

Arguments

xx

A vector of type character (required)

searchrep

A matrix with two columns of type character (required). The left column is the pattern and the right, the replacement.

method

One of 'partial','full', or 'exact'. Controls whether to replace only the matching regexp, replace the entire value that contains a matching regexp, or replace the entire value if it's an exact match.


bokov/tidbits documentation built on Jan. 26, 2024, 6:25 p.m.