From data.table help, I considered .I to be more or less equivalent to seq_len(nrow(dt)). But seems it doesn't work the same when placed in [i, context of data.table. In the following example I am trying to flag (modify value of a column) all rows after 10th:
data(iris)
setDT(iris)
iris[ .I > 10L, newCol:='10+!'] # doesn't work
iris[seq_len(nrow(iris)) > 10L, newCol:='10+!'] # this works
Why .I doesn't work here?