Change "locations" to "indexes" (#1124)
The word "locations" makes it sound like `str_locate()`, which is NOT the case.
This commit is contained in:
@@ -166,7 +166,7 @@ babynames |>
|
|||||||
geom_line()
|
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}
|
```{r}
|
||||||
str_subset(c("a", "b", "c"), "[aeiou]")
|
str_subset(c("a", "b", "c"), "[aeiou]")
|
||||||
|
|||||||
Reference in New Issue
Block a user