Description Usage Arguments Functions
Match a character vector against a regular expression with at least two parenthetic groupings, returning named vector.
1 2 3 | str_pair_match(string, pattern, pos, swap = FALSE, ...)
strPairMatch(string, pattern, pos, swap = FALSE, ...)
|
string |
vector of strings |
pattern |
vector of regular expression which should match exactly two
strings for each element in |
pos |
optional pair of integers with positions of the first and second desired matches, when multiple matches are made by the regular expression |
swap |
logical scalar, whether to swap the names and values. Default is not to swap, so the first match becomes the name. |
strPairMatch
: Deprecated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.