powered by
This is a convenient way to drop uninformative rows from a data frame.
drop_na_all(data, ...)
The original data frame with rows for which all values are missing dropped.
A data frame.
<tidy-select> Columns to inspect for missing values. If empty, all columns are used.
tidy-select
tidyr::drop_na and drop_uninformative_columns
tidyr::drop_na
drop_uninformative_columns
data <- tibble::tibble( a = c(NA, NA, NA), b = c(1, 1, NA), c = c(2, NA, NA) ) drop_na_all(data) drop_na_all(data, a, c)
Run the code above in your browser using DataLab