I have a data.table with a logical column. Why the name of the logical column can not be used directly for the i argument? See the example.
data.table
i
This should also work and is arguably more natural:
setkey(dt, x) dt[J(TRUE)] dt[J(FALSE)]