I am new to R. When I wrote this code:
aggregate(x= IP.Causes$TOTAL.by.Type, by= list(IP.Causes$Payment.Type), FUN=sum)
I got