This is pretty minor, but worth noting/documenting/fixing if it's easy. I came across it when commenting out parts of my code to test the output of a join absent performing the j operation:
library(data.table)
DT = data.table(a = 1:5)
DT[ , {}]
Error in jsub[[2L]] : subscript out of bounds
Closest operation in base R I guess is:
I guess I would expect this to just return DT since that's what DT[ , ] does.
This is pretty minor, but worth noting/documenting/fixing if it's easy. I came across it when commenting out parts of my code to test the output of a join absent performing the
joperation:Closest operation in base R I guess is:
I guess I would expect this to just return
DTsince that's whatDT[ , ]does.