removeEmptyColumns: Remove empty Columns from a Data Frame

View source: R/column.R

removeEmptyColumnsR Documentation

Remove empty Columns from a Data Frame

Description

Remove empty Columns from a Data Frame

Usage

removeEmptyColumns(
  x,
  drop = FALSE,
  FUN = function(x) all(is.na(x)),
  dbg = TRUE
)

Arguments

x

data frame

drop

if TRUE and only one column remains the column is returned as a vector

FUN

function called on each column to determine if all values in the column are empty. Default: function(x) all(is.na(x))

dbg

if TRUE debug messages are shown

Value

data frame x with empty columns (columns with NA in all rows) being removed

See Also

hsDelEmptyCols


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.