From e815b63ed68bbb75d6cffa3f71845ca5fd2c76b6 Mon Sep 17 00:00:00 2001 From: Kevin Wright Date: Tue, 8 Nov 2022 07:06:54 -0600 Subject: [PATCH] Change "locations" to "indexes" (#1124) The word "locations" makes it sound like `str_locate()`, which is NOT the case. --- regexps.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]")