Remove empty Columns from a Data Frame
removeEmptyColumns(x, drop = FALSE, FUN = function(x) all(is.na(x)), dbg = TRUE)
x | data frame |
---|---|
drop | if |
FUN | function called on each column to determine if all values in the
column are empty. Default: |
dbg | if |
data frame x
with empty columns (columns with NA in all rows)
being removed