Change "locations" to "indexes" (#1124)

The word "locations" makes it sound like `str_locate()`, which is NOT the case.
This commit is contained in:
Kevin Wright 2022-11-08 07:06:54 -06:00 committed by GitHub
parent a3b606dc47
commit e815b63ed6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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]")