Description Usage Arguments Examples
View source: R/misc-functions.R
text_matcher() returns logical vector indicating whether each element in x matches terms included in include_text. If exclude_text (character vector of words) is nonempty, text_matcher() first filters out any of the terms included in exclude_text before matching the include_text
1 | text_matcher(x, include_text, exclude_text = NULL, ignore_case = TRUE)
|
x |
Character vector containing text to search. |
include_text |
Character vector containing terms to find. |
exclude_text |
Character vector containing terms to exclude. Defaults to NULL. If exclude_text (character vector of words) is nonempty, text_matcher() first filters out any of the terms included in exclude_text before matching the include_text |
ignore_case |
logical. Sets value of ignore.case in gsub and grepl. |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.