drop_na_all | R Documentation |
This is a convenient way to drop uninformative rows from a data frame.
drop_na_all(data, ...)
data |
A data frame. |
... |
< |
The original data frame with rows for which all values are missing dropped.
tidyr::drop_na
and 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.