Remove empty rows and/or columns from a data.frame or matrix.
Removes all rows and/or columns from a data.frame or matrix that
are composed entirely of NA
values.
remove_empty(dat, which = c("rows", "cols"), quiet = TRUE)
dat |
the input data.frame or matrix. |
which |
one of "rows", "cols", or |
quiet |
Should messages be suppressed ( |
Returns the object without its missing rows or columns.
remove_constant()
for removing
constant columns.
Other remove functions:
remove_constant()
# not run: # dat %>% remove_empty("rows")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.