igrepl | R Documentation |
This function takes character vector patterns
with regex patterns
(or fixed strings),
and searches for match in the x
string. It is inverse in the meaning,
that in grepl single pattern is used against multiple strings;
instead, this function takes multiple patterns to fit on a single string.
igrepl(patterns, x, fixed = FALSE)
patterns |
a character vector of regex or fixed patterns. |
x |
a string to search for the match. |
fixed |
a logical, indicating whether patterns are fixed strings. |
Logical vector of length as patterns
with true if pattern
was found.
igrepl(c("today","b.* fox", "jumps over", "vigorous"),
"The quick brown fox jumps over the lazy dog", FALSE)
igrepl(c("today","brown fox", "jumps over", "vigorous"),
"The quick brown fox jumps over the lazy dog", TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.