string_extract | R Documentation |
Vectorised extraction of matching patterns using Perl-compatible regular expressions.
string_extract(string, pattern) string_extract_all(string, pattern, simplify = FALSE)
string |
A character vector. |
pattern |
A pattern to look for. |
simplify |
If |
A character vector.
A character vector.
fables <- c("La cigale et la fourmi", "Le chĂȘne et le roseau") string_extract(fables, "\\b(?i:la|le)") string_extract_all(fables, "\\pL{3,}")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.