igrepl | R Documentation |
case-insensitive logical grepl
igrepl(..., ignore.case = TRUE)
... , ignore.case |
parameters sent to |
This function is a simple wrapper around base::grepl()
which
runs in case-insensitive mode simply by adding default ignore.case=TRUE
.
It is mainly used for convenience.
logical
vector indicating pattern match
Other jam grep functions:
grepls()
,
igrepHas()
,
igrep()
,
provigrep()
,
unigrep()
,
unvigrep()
,
vgrep()
,
vigrep()
V <- paste0(LETTERS[1:5], LETTERS[4:8]);
ig1 <- grepl("D", V);
ig2 <- igrepl("D", V);
ig3 <- grepl("d", V);
ig4 <- igrepl("d", V);
data.frame(V,
grepl_D=ig1,
grepl_d=ig3,
igrepl_D=ig2,
igrepl_d=ig4);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.