Returns data frame in which all empty columns (NA in all rows) are removed
hsDelEmptyCols(dataFrame, FUN = function(x) all(is.na(x)), drop = FALSE)
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: |
drop | if |
copy of input data frame but with all empty columns removed