powered by
Drop rows containing missing values
drop_na(data, ...)
A data frame.
<tidy-select> Columns to inspect for missing values.
tidy-select
# NOT RUN { 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)) # }
Run the code above in your browser using DataLab