| remove_empty {janitor} | R Documentation |
Removes all rows and/or columns from a data.frame that are composed entirely of NA values.
remove_empty(dat, which = c("rows", "cols"))
dat |
the input data.frame. |
which |
one of "rows", "cols", or |
Returns the data.frame without its missing rows or columns.
# not run:
# dat %>% remove_empty("rows")