I have a dataframe of this type (only there are like 15 columns)
electronic_used how_it_works what_it_says how_it_looks
smartphone right right right
computer wrong wrong wrong
smartphone wrong wrong wrong
computer right right right
What I want is to organize it so that the answers are like these:
electronic_used how_it_works what_it_says how_it_looks
smartphone_right 1 1 1
computer_right 2 2 2
smartphone_wrong 2 1 1
computer_wrong 1 3 2
I am not sure how to do this, but basically I want to organize it by the electronic_used and counting how many right and wrongs there were for each category.
Any help would be appreciated!