group_by_pattern | R Documentation |
Determines groups of strings using a regex pattern.
group_by_pattern(x, pattern)
x |
(chr vctr) A character vector of values to group. |
pattern |
(chr sclr) The regex pattern to group variables by. |
A list of integer vectors. Each vector is the indices of the variables that belong to each group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.