.EACHI in data.table?
问题 I cannot seem to find any documentation on what exactly .EACHI does in data.table . I see a brief mention of it in the documentation: Aggregation for a subset of known groups is particularly efficient when passing those groups in i and setting by=.EACHI . When i is a data.table, DT[i,j,by=.EACHI] evaluates j for the groups of DT that each row in i joins to. We call this grouping by each i. But what does "groups" in the context of DT mean? Is a group determined by the key that is set on DT ?