str_locate_match {tidytidbits} | R 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
[Package tidytidbits version 0.3.2 Index]