remove_strings: Returns a character vector with the string patterns within...

View source: R/remove_strings.R

remove_stringsR Documentation

Returns a character vector with the string patterns within the expunge character vector removed.

Description

Uses stri_detect_regex.

Usage

remove_strings(.str, expunge, ignore_case = FALSE)

Arguments

.str

character vector

expunge

character vector of strings to be removed

ignore_case

logical indication whether or not to be case specific.

Examples

strngs <- c("abc", "d", "E", "Fh")
expunge <- c("abc", "D", "E")
remove_strings(strngs, expunge, ignore_case = TRUE)
remove_strings(strngs, expunge, ignore_case = FALSE)


rmsharp/rmsutilityr documentation built on Feb. 13, 2024, 6:01 p.m.