str_locate_match: Combine str_match and str_locate

View source: R/stringr-like.R

str_locate_matchR Documentation

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


tidytidbits documentation built on March 18, 2022, 6:10 p.m.