tidy_sub: Tidy Sub

View source: R/utilities.R

tidy_subR Documentation

Tidy Sub

Description

Utility function to make sub() work better with pipes

Usage

tidy_sub(x, pattern, replacement, fixed = TRUE, ...)

Arguments

x

a character vector where matches are sought

pattern

character string containing a regular expression (or character string for fixed = TRUE) to be matched in the given character vector.

replacement

a replacement for matched pattern in sub and gsub.

fixed

logical. If TRUE, pattern is a string to be matched as is.

...

additional parameters passed to sub


the-mad-statter/washu documentation built on May 5, 2024, 10:26 a.m.