Remove matched patterns in a string

x %rm% y

Arguments

x

A character vector

y

Character string or pattern to remove

Value

A character vector

Details

This function is a pipe version of stringr::str_remove

Examples

'totoro' %rm% 'to'
#> [1] "toro"