names_or_error: names or error

Description Usage Arguments Value Author(s)

Description

Extract capture group names. Stop with an error if there are no capture groups, or if there are any capture groups without names.

Usage

1
2
names_or_error(vec.with.attrs, 
    pattern)

Arguments

vec.with.attrs

Output from g?regexpr.

pattern

Value

Character vector.

Author(s)

Toby Dylan Hocking


namedCapture documentation built on April 2, 2020, 1:07 a.m.