Returns data frame in which all empty columns (NA in all rows) are removed
Arguments
- dataFrame
data frame of which empty columns (NA in all rows) are to be removed
- FUN
function to be applied to each column to decide whether the column is empty or not. Default:
function(x) all(is.na(x))
- drop
if
TRUE
(the default isFALSE
) one dimension is dropped (a vector is returned instead of a data frame) in case that all but one columns are removed.