Usually, when you multiply in a key column, to use a fast subset based on a binary search, you should:
DT[J(values)]
DT[.(values)]
. J . character, , data.table , , J ., .
DT["a"]
DT[J("a")]
DT[.("a")]
. , data.table i . , , . DT[2], 2 numeric, data.table , . .
DT[J(.)] , , , , , . DT[x < .] . , x a, x. , .
, , . . , . .
.
PS: , DT["2"] - , DT[key < 2], key . . ( ) DT[J(2)].
, . DT[J(2)] , 2 DT, as DT[key < 2] [min[key], 2).