📜  r 按组聚合数据帧 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:48.536000             🧑  作者: Mango

代码示例1
aggregate(x$Frequency, by=list(Category=x$Category), FUN=sum)
  Category  x
1    First 30
2   Second  5
3    Third 34