diff --git a/regexps.qmd b/regexps.qmd index ebd4815..7b73d68 100644 --- a/regexps.qmd +++ b/regexps.qmd @@ -166,7 +166,7 @@ babynames |> geom_line() ``` -There are two functions that are closely related to `str_detect()`: `str_subset()` returns just the strings that contain a match, and `str_which()` returns the locations of strings that have a match: +There are two functions that are closely related to `str_detect()`: `str_subset()` returns just the strings that contain a match, and `str_which()` returns the indexes of strings that have a match: ```{r} str_subset(c("a", "b", "c"), "[aeiou]")