Change "locations" to "indexes" (#1124)
The word "locations" makes it sound like `str_locate()`, which is NOT the case.
This commit is contained in:
parent
a3b606dc47
commit
e815b63ed6
|
@ -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]")
|
||||||
|
|
Loading…
Reference in New Issue