Description Usage Arguments Value
this function is an improved version of str_extract where we want to match the desired substring with a pattern using back reference. Notice that str_extract can describe what we want, which may be difficult. Now str_extract2 describes what we don't want and what is left is the desired result.
1 | str_extract2(string, pattern)
|
string |
a string vector |
pattern |
a pattern that to be passed to sub |
returned by sub
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.