I am trying to use more and more of the %>%
operator with dplyr
in my code but I find I am not able figure out how to use %>%
all the time. E.g., how would I use it with the complete.cases()
function in a correct way for
X <- X[complete.cases(X), ]
using the %>%
operator. I am writing
X %>% filter(X %>% complete.cases)
but having X
on both sides of the operator does not seem to be the right way to me. The code works though!