Skip to contents

First deduplicates with data.table::unique(), then drops rows where every column is NA (these contribute no information and inflate row counts).

Usage

.drop_empty_rows(dt)

Arguments

dt

A data.table.

Value

A new data.table with empty/duplicate rows removed.