@PierreLafortune I don't bother at all. Please ask DavidArenburg. He closed many of my dupes.
@PierreLafortune In this particular case (the link I commented), I had some discussion with David Arenburg yesterday. He closed one question yesterday, which can be called as dupe but it is still very tricky
@PierreLafortune For example, suppose we want to get the mean of a variable by group,
we use setDT(df1)[, mean(var1), id]