``` R require(data.table) ## 1.9.5 X = data.table(x=c(1,1,1,2), y=1:4, key="x") X[.(2:3), .N, nomatch=0L] # wrong result # [1] 2 ```