Answers for "sum by 2 groups based on aggregate r function and put it in table"

R
0

r aggregate data frame by group

aggregate(x$Frequency, by=list(Category=x$Category), FUN=sum)
  Category  x
1    First 30
2   Second  5
3    Third 34
Posted by: Guest on March-25-2020

Code answers related to "sum by 2 groups based on aggregate r function and put it in table"

Browse Popular Code Answers by Language