View source: R/03-df_summaise_groupLevel.R
df_groupBy_summarise_cols_funs | R Documentation |
将数据框进行分组计算
df_groupBy_summarise_cols_funs(
data = mtcars,
gp_fieldName = c("cyl", "disp"),
gp_fieldCaption = NULL,
summ_fieldName = c("mpg", "cyl", "disp"),
funName = c("mean", "sum", "length"),
summ_fieldCaption = letters[1:3]
)
data |
数据框 |
gp_fieldName |
分组变量字段 |
gp_fieldCaption |
分组变量标题 |
summ_fieldName |
聚合变量字段 |
funName |
函数名称 |
summ_fieldCaption |
聚会字段标题 |
返回数据框
df_groupBy_summarise_cols_funs();
df_groupBy_summarise_cols_funs(mtcars,
gp_fieldName = c('mpg','cyl','disp'),
gp_fieldCaption = c('gp1','gp2','gp3'),
funName = c('sum','sum','sum'),
summ_fieldCaption = c('sum1','sum2','sum3'));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.