Skip to contents

Currently only works for data tables, and only for completely missing columns

Usage

DropMiss(DT)

Arguments

DT

The data table

Value

A data table; no columns will be entirely missing

Examples

DT <- data.table::data.table(A=1:3, B=NA, C=c(runif(2), NA))
DropMiss(DT)
#>        A         C
#>    <int>     <num>
#> 1:     1 0.7636721
#> 2:     2 0.5347013
#> 3:     3        NA