str_filter | R Documentation |
A wrapper for stringr's str_detect
that returns the matched values, or the non-matched values.
str_filter(string, pattern, reverse = F)
string |
(chr) A string. |
pattern |
(chr) Pattern to look for (regex). |
reverse |
(lgl) Whether to return the non-matched values instead (default no). |
A character vector.
str_filter(letters, pattern = "[aeiou]")
str_filter(letters, pattern = "[aeiou]", reverse = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.