| contains_pattern | R Documentation |
This helper checks whether all elements of a character vector match a regex pattern.
contains_pattern(
x,
pattern,
ignore.case = FALSE,
perl = FALSE,
fixed = FALSE,
useBytes = FALSE
)
x |
A character vector to check |
pattern |
A regular expression pattern (string) |
ignore.case, perl, fixed, useBytes |
Logical flags passed to |
TRUE if all strings in x match pattern, otherwise FALSE or a string error message.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.