x <- data.frame(
a = 1:5,
b = c(1, NA, 3, 4, 5),
c = c(1, NA, NA, 4, 5)
)
complete_cases(x)
complete_cases(x, invert = TRUE) # returns the incomplete rows
complete_cases(x, "a")
complete_cases(x, "b")
complete_cases(x, "c")
Run the code above in your browser using DataLab