| vgrep | R Documentation |
grep, returning values
vgrep(..., value = TRUE, ignore.case = FALSE)
..., value, ignore.case |
parameters sent to |
This function is a simple wrapper around base::grep() which
returns matching values. It is
particularly helpful when grabbing values from a vector, but where the
case (uppercase or lowercase) is known.
vector of matching values
Other jam grep functions:
grepls(),
igrep(),
igrepHas(),
igrepl(),
provigrep(),
unigrep(),
unvigrep(),
vigrep()
V <- paste0(LETTERS[1:5], LETTERS[4:8]);
vgrep("D", V);
vgrep("d", V);
vigrep("d", V);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.