contains_one_of | R Documentation |
Check if a value matches multiple regular expressions
contains_one_of(x, ..., ignore.case = FALSE)
x |
A character vector |
... |
unquoted or quoted 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
nams=c("George Washington", "Washington DC", "King George")
contains_one_of(nams, Washington, DC)
contains_one_of(nams, ing)
contains_one_of(nams, "^Wash.*$")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.