A small family of grepl()/%in% wrappers as base functions
and matching infix operators.
Usage
match_like(vector, pattern, ignore.case = FALSE, fixed = FALSE, perl = FALSE)
ilike(vector, pattern)
vector %ilike% pattern
flike(vector, pattern)
vector %flike% pattern
plike(vector, pattern)
vector %plike% pattern
notin(x, table)
x %!in% tableArguments
- pattern
Pattern to match (for the
likefamily).- ignore.case, fixed, perl
Logical flags controlling how
patternis matched, as ingrepl.- x, vector
A vector to test.
- table
Vector of values to test against (for
notin()/%!in%).
