contains_one_of_ | R Documentation |
Check if a value matches multiple regular expressions
contains_one_of_(x, regexps, ignore.case = FALSE)
x |
A character vector |
regexps |
A vector of regular expressions |
ignore.case |
A logical. If FALSE (default) case is ignored in the comparison |
The vector x is checked against each regular expression in the array provided. Any match results in TRUE for the element
A logical vector of length x
nams=c("George Washington", "Washington DC", "King George")
contains_one_of_(nams, c("Washington","DC"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.