case-insensitive grep, returning unmatched indices
unigrep(..., ignore.case = TRUE, invert = TRUE)
parameters sent to base::grep()
vector of non-matching indices
This function is a simple wrapper around base::grep()
which
runs in case-insensitive mode, and returns unmatched entries.
It is mainly used to save keystrokes,
but is consistently named alongside vgrep
and
vigrep
, and quite helpful for writing concise code.