I am interested in understanding how data.table in R handles row-wise calculations in j. I thought these should return the same thing given this question and this post, though I am not experienced at reading these change logs.
DT <- data.table(x=rep(c("b","a","c"),each=3), y=c(1,3,6), v=1:9)
# Example function to do row-wise
DT[, mean(v), by = 1:NROW(DT)]
NROW V1
1: 1 1
2: 2 2
3: 3 3
4: 4 4
5: 5 5
6: 6 6
7: 7 7
8: 8 8
9: 9 9
DT[, mean(v), by = .I]
V1
1: 5