-
Notifications
You must be signed in to change notification settings - Fork 34
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
new example for vignette #23
Comments
Thanks for the kind words! That would be super useful. Because of the nested magrittr pipes, do you have any idea what |
Exists already exists! If you try it, you'll see it works with the current version of assertr : D |
Just checked this. It will return TRUE is there's a variable named the same name as the column to be checked... mpgg <- "this"
mtcars %>%
verify("mpgg" %>% exists) %>%
head # passes Which can be really dangerous. mpgg <- "this"
mtcars %>%
verify(exists("mpgg", where=.)) %>%
head # fails I think it might be worth writing a dedicated wrapper function (I'll do it!). |
Nice catch, yes, in this case a wrapper would be helpful. On Sat, Aug 15, 2015 at 11:48 AM, Tony Fischetti notifications@github.com
|
Because I don't have any other "predicates" that can't be used with |
I decided to implement this after all! It's It's in the README and vignette now, too |
👍 |
Hi what a nice package--
Perhaps you'd like to add to your vignette that it's easy to check that a data frame column contains a column
The text was updated successfully, but these errors were encountered: