powered by
group by columns and return a summarized table
dt_group_by(dt, group_by_cols, summarize_at, operation)
a summarized table
input data.table
group by columns
column summarize at
calculation operation, value should be one of following: sum, mean, median, max, min
data("dt_groups") dataMojo::dt_group_by(dt_groups, group_by_cols = c("group1", "group2"), summarize_at = "A1", operation = "mean")
Run the code above in your browser using DataLab