str_remove_all: Remove matched patterns in a string

View source: R/str_remove.R

str_remove_allR Documentation

Remove matched patterns in a string

Description

Dependency-free drop-in alternative for stringr::str_remove_all().

Usage

str_remove_all(string, pattern)

Arguments

string

Input vector. Either a character vector, or something coercible to one.

pattern

Pattern to look for.

The default interpretation is a regular expression, as described in base::regex. Control options with regex().

Match a fixed string (i.e. by comparing only bytes), using fixed(). This is fast, but approximate.

Value

A character vector.

Source

Adapted from the stringr package.


stringstatic documentation built on July 26, 2023, 5:32 p.m.