Rcpp code to do a group sum by four variables in R

后端 未结 0 627
不思量自难忘°
不思量自难忘° 2020-12-04 02:18

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)]


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题