replacetext: Replace a pattern with replacement text

View source: R/primitives.R

replacetextR Documentation

Replace a pattern with replacement text

Description

Replace a pattern with replacement text

Usage

replacetext(x, pattern, replacement, fixed = FALSE)

Arguments

x

An atomic vector.

pattern

A regular expression (or fixed string when fixed = TRUE).

replacement

Replacement text.

fixed

Use fixed (non-regex) matching instead of regular expressions.

Value

A character vector.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.