I want to count the number of "Agree" and "Disagree" in each column. ALl I have done so far is some recoding of the data, but how do I get the counts for each column. I have tried summarise_all but this has not worked. I am trying to work in dplyr
new<-subjects1%>%
filter(Qx1_mod1=='Health, Public Services and Care')%>%
mutate_all(funs(str_replace(., "Strongly agree", "Agree")))%>%
mutate_all(funs(str_replace(., "Strongly disagree", "Disagree")))%>%
mutate_all(funs(str_replace(., "Neither agree nor disagree", "Neither")))