| unigrep | R Documentation |
case-insensitive grep, returning unmatched indices
unigrep(..., ignore.case = TRUE, invert = TRUE)
..., ignore.case, invert |
parameters sent to |
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.
vector of non-matching indices
Other jam grep functions:
grepls(),
igrep(),
igrepHas(),
igrepl(),
provigrep(),
unvigrep(),
vgrep(),
vigrep()
V <- paste0(LETTERS[1:5], LETTERS[4:8]);
unigrep("D", V);
igrep("D", V);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.