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"), cutoff = 1)Returns the object without its missing rows or columns.
the input data.frame or matrix.
one of "rows", "cols", or c("rows", "cols"). Where no
value of which is provided, defaults to removing both empty rows and empty
columns, declaring the behavior with a printed message.
What fraction (>0 to <=1) of rows or columns must be empty to be removed?