View source: R/col_str_reshape.R
dt_group_by | R Documentation |
group by columns and return a summarized table
dt_group_by(dt, group_by_cols, summarize_at, operation)
dt |
input data.table |
group_by_cols |
group by columns |
summarize_at |
column summarize at |
operation |
calculation operation, value should be one of following: sum, mean, median, max, min |
a summarized table
data("dt_groups") dataMojo::dt_group_by(dt_groups, group_by_cols = c("group1", "group2"), summarize_at = "A1", operation = "mean")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.