I want to omit rows where NA appears in both of two columns.
NA
I\'m familiar with na.omit, is.na, and compl
na.omit
is.na
compl
dplyr solution
dplyr
require("dplyr") df %>% filter_at(.vars = vars(x, y), .vars_predicate = any_vars(!is.na(.)))
can be modified to take any number columns using the .vars argument
.vars