remove_empty | R Documentation |
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)
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? |
Returns the object without its missing rows or columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.