remove_these_str: Remove these strings

View source: R/remove_these_str.R

remove_these_strR Documentation

Remove these strings

Description

Modified from rmsutilityr::remove_strings() by R. Mark Sharp. The modification was to remove a package dependency using the standard relational opporator "==" instead of stri_detect_regex().

Usage

remove_these_str(.str, expunge, ignore_case = FALSE)

Arguments

.str

character vector that have tokens removed that match tokens within the expunge vector.

expunge

character vector of tokens to be removed from the .str vector if present.

ignore_case

boolean that determines whether or not case is ignored. Defaults to FALSE.


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