SyntaxFix
Write A Post
Hire A Developer
Questions
require(reshape2) T <- melt(df, id = c("A")) T <- dcast(T, A ~ variable, sum)
I am not certain the exact advantages over aggregate.