Description Usage Arguments Details Value Functions Examples
Remove a pattern match from a string. Think of this as regex-powered string subtraction. Matching is case-insensitive and greedy, i.e., all matches will be removed.
1 2 3  | 
string | 
 A character vector.  | 
pattern | 
 A regular expression.  | 
The equivalent alternatives are str_remove_all(x, regex(pattern, ignore_case = TRUE)) (which this function wraps) or gsub('pattern', '', x, ignore.case = TRUE).
The vector string without any substrings matching pattern.
%r%: Alias for removing a pattern match
1 2  | 'APPLE' %-% 'l\\w' == 'APP'
'BANANA' %-% 'a|n' == 'B'
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.