remove_empty_at | R Documentation |
Drop rows that are completely empty at specified variables. Note
tidyr::drop_na()
have a similar usage, but it drops rows containing any
missing values (so only complete observations are retained), not all
missings. remove_empty_at()
drops only those rows that have no non-missing
data at the variables specified in vars
.
remove_empty_at(.data, vars)
.data |
tibble or data.frame |
vars |
variables to check for empty values, supports tidyselect syntax |
tibble or data.frame without observations with all vars
empty
airquality %>% remove_empty_at(c(Ozone, Solar.R))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.