str_replace_multi: Multiple replacement

View source: R/strings.R

str_replace_multiR Documentation

Multiple replacement

Description

A simple wrapper for stringr's str_replace() and str_replace_all().

Usage

str_replace_multi(string, patterns, replacement, all = T)

Arguments

string

(a character scalar) A string.

patterns

(a character vector) A character vector of things to clean. Regex.

replacement

(a character scalar) What to replace matches with.

all

(boolean) Whether to clean all instances or just the first. Default=T.

Examples

str_replace_multi()

Deleetdk/kirkegaard documentation built on May 8, 2024, 12:27 a.m.