
Last chance! 50% off unlimited learning
Sale ends in
str_locate_all(string, pattern)
regex
for
description.regexpr
which this function wrapsstr_extract
for a convenient way of extracting matches
str_locate
to locate position of first match
fruit <- c("apple", "banana", "pear", "pinapple")
str_locate_all(fruit, "a")
str_locate_all(fruit, "e")
Run the code above in your browser using DataLab