str_locate_match: Combine str_match and str_locate
Description
For every pattern, return the index of the first match of pattern in strings
Usage
str_locate_match(patterns, strings)
Arguments
patterns
Character vector of patterns
strings
Character vector of strings
Value
Integer vector of length(patterns) where entry i gives the index in strings where pattern i first matched