Drop rows containing missing values
Drop rows containing missing values
drop_na(data, ...)
data |
A data frame. |
... |
< |
library(dplyr) df <- tibble(x = c(1, 2, NA), y = c("a", NA, "b")) df %>% drop_na() df %>% drop_na(x) vars <- "y" df %>% drop_na(x, any_of(vars))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.