Note that the pipeline operator used in dplyr is imported from magrittr , so use other functions to access
library(magrittr)
See the ?extact for a list of common aliases suitable for magrittr.
In this case, not() is defined as an alias for !
df %>% not
To simplify the challenge! is.na, you can define
not_ <- function(x, f) not(f(x)) df %>% not_(is.na)
source share