You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
by could accepted a named vector to set names when it's a character vector #1711
require(data.table)
dt= data.table(x=c(1,1,2,2), y=1, z=2)
dt[, sum(y), by=.(xx=x)] # possible to name columns in by when using .()dt[, sum(y), by=c(xx="x")] # could work as well
The same could be used for .SDcols as well in case of aggregations.. perhaps.
Activity
ben-schwen commentedon Nov 20, 2026
This was fixed in #4713 :)