-
Notifications
You must be signed in to change notification settings - Fork 192
Closed
Description
I assume there's a good reason why this seems not to have been done. However, I can't see it and think it would make it easier for people used to base regex to switch. str_which()
could be a good option. Could put in a PR but wanted to check if this is something that would be useful.
grep("z", letters)
## [1] 26
which(str_detect(letters, "z"))
## [1] 26
Context:
tiernanmartin
Metadata
Metadata
Assignees
Labels
No labels