🌈 搜索
📅  最后修改于: 2022-03-11 14:59:45.250000             🧑  作者: Mango
library(dplyr) tab %>% group_by(month, variable) %>% summarise(a_sum=sum(amount), a_mean=(mean(amount)))