remove_empty {whippr} | R Documentation |
Remove empty rows and/or columns from a data.frame or matrix.
Description
Removes all rows and/or columns from a data.frame or matrix that
are composed entirely of NA
values.
Usage
remove_empty(dat, which = c("rows", "cols"), cutoff = 1)
Arguments
dat |
the input data.frame or matrix. |
which |
one of "rows", "cols", or |
cutoff |
What fraction (>0 to <=1) of rows or columns must be empty to be removed? |
Value
Returns the object without its missing rows or columns.
[Package whippr version 0.1.3 Index]