Description Usage Arguments Value Examples
Return matched regexp group
1 | return_match(string, pattern)
|
string |
a string or vector of strings |
pattern |
a regexp string including parens to find a group |
a vector isolating the matching group, or NA where match not found
1 | return_match(row.names(mtcars), "(^[^\\s]+)")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.