Removes columns from a data.table where all the values are missing.

drop_empty_cols(DT, copy = FALSE)

Arguments

DT

A data.table.

copy

Copies the data.table so the original can be retained. Not applicable if DT is not a data.table. If FALSE, the default, DT itself will be modified.