Description Usage Arguments Value
This is intended as a 'drop-in' replacement for grepl and should give identical results This function first matches on the unique strings and then matches back to the original, so it will give a speedup iff length(unique(words)) << length(words)
1 | match_words(pattern, words, ignore.case = T)
|
pattern |
a regular expression pattern to use |
words |
a vector of words, this should probably be a factor to achieve speedup |
ignore.case |
passed to grepl, defaults to TRUE for this function |
a vector of booleans indicating which words matched the pattern
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.