df_groupBy_summarise_cols_funs: 将数据框进行分组计算

View source: R/03-df_summaise_groupLevel.R

df_groupBy_summarise_cols_funsR Documentation

将数据框进行分组计算

Description

将数据框进行分组计算

Usage

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

Arguments

data

数据框

gp_fieldName

分组变量字段

gp_fieldCaption

分组变量标题

summ_fieldName

聚合变量字段

funName

函数名称

summ_fieldCaption

聚会字段标题

Value

返回数据框

Examples

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'));

takewiki/tsdo documentation built on July 5, 2023, 10:57 p.m.