str_locate_match: Combine str_match and str_locate

Description Usage Arguments Value

View source: R/stringr-like.R

Description

For every pattern, return the index of the first match of pattern in strings

Usage

1
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 8, 2021, 5:07 p.m.