I want to sum of a variable abc grouped by four variables.
Below is the equivalent R code
dt[, .(new_var =sum(abc)), by = .(var1, var2, var3, var5)]