I have a following dataframe in r
Introvert Extrovert Biased Village.Name
Positive Negative Negative ABC
Negative Negative Negative ABC
Negative Positive Positive ABC
Positive Negative Negative DEF
Negative Positive Positive DEF
Negative Positive Positive DEF
I want to count Positive
in every columns grouped by Village.Name
My desired dataframe would be
Village.Name Introvert Extrovert Biased
ABC 1 1 1
DEF 1 2 2
How can I do it in R?