How do I draw the sum value of each class represented like the table:
a a,b a,b,c c
5 2 1 2
E.g for the above example expected result is:
a b c
8 3 3
I'm asking this since I couldn't even find a close solution anywhere in the stackoverflow, the closest solution represented was the dcast function, but that only checks for equality, not presence.