Description Usage Arguments Value Examples
View source: R/match_pattern.R
Pattern matching
1 | match_pattern(x, pattern)
|
x |
Atomic character vector |
pattern |
regular expression passed to stringr::str_detect() |
Either a message if all elements match, or a character vector of mismatches
1 2 | match_pattern(example_paths$last_dir, "ID_[0-9]{5}")
match_pattern(example_paths$file, "^[0-9]{5}")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.