return_match: Return matched regexp group

Description Usage Arguments Value Examples

Description

Return matched regexp group

Usage

1
return_match(string, pattern)

Arguments

string

a string or vector of strings

pattern

a regexp string including parens to find a group

Value

a vector isolating the matching group, or NA where match not found

Examples

1
return_match(row.names(mtcars), "(^[^\\s]+)")

brianwonch/mediamunger documentation built on May 13, 2019, 7:42 a.m.