-
Notifications
You must be signed in to change notification settings - Fork 192
Add str_select which works as grep with value=T #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The code is actually based on str_detect at the moment. It could wrap grep if this is preferred.
Any chance of getting this in? I am using x[which(str_detect(x, ...))] more than I can count. |
Do you really need which?
|
Yes because:
gives NA and which eliminates those. |
Thanks! |
@hadley: Do you mean |
Oops, missed that. I'll add a wrapper! |
Done! |
Thanks for the regain of activity on |
@jiho two main reasons:
|
@hadley thanks for the info. I'll surely continue to use But anyhow, as a |
The code is actually based on str_detect at the moment. It could wrap grep if
this is preferred.