group_by_pattern: Group by pattern

group_by_patternR Documentation

Group by pattern

Description

Determines groups of strings using a regex pattern.

Usage

group_by_pattern(x, pattern)

Arguments

x

(chr vctr) A character vector of values to group.

pattern

(chr sclr) The regex pattern to group variables by.

Value

A list of integer vectors. Each vector is the indices of the variables that belong to each group.


Deleetdk/kirkegaard documentation built on June 7, 2024, 7:49 a.m.