This is my data set - https://www.kaggle.com/volodymyrgavrysh/bank-marketing-campaigns-dataset
I am trying to plot how many times each education type has said yes.
So first I find out from the data set who said yes
yest <- subset(bank, y == "yes")
Then I count the count of both
edcount <- plyr::count(plyr::count(yest$education, yest$yes))
But this just gives the freq of education types but not the number of times each type has said yes. What is wrong with my code?
I am trying for my data set to look like this
x freq freqofyes
basic.4y 400 10
As I need to find if there is a correlation between education and people saying yes.