SyntaxFix
Write A Post
Hire A Developer
Questions
Another solution that returns sums by groups in a matrix or a data frame and is short and fast:
rowsum(x$Frequency, x$Category)