discard_if: Create new data.table after discarding certain rows
Description
Create new data.table after discarding certain rows
Usage
discard_if(x, ..., by = NULL)
discard_if_(x, .dots, by = NULL)
Arguments
x
a data.table
...
Conditions. Rows where the condition evaluates to NA are not discardd. Therefore, discard_if(dt, condition) is not the same as keep_if(x, !condition) with