str_rm_regexp_match: Remove words from a vector that match a regular expression.

Description Usage Arguments Value Examples

View source: R/text.table.R

Description

Remove words from a vector that match a regular expression.

Usage

1
str_rm_regexp_match(x, pattern)

Arguments

x

A vector of words.

pattern,

A regular expression.

Value

x, with the words matching the regular expression removed.

Examples

1
2
3
4
str_rm_regexp_match(
x = c("a", "dog", "went", "to", "the", "store"),
pattern = "to"
)

textTools documentation built on Feb. 5, 2021, 5:07 p.m.