I am trying to compute the mean amount spent on wine by education level. When I go to filter the data I do this:
marketing %>%
select(Education, MntWines) %>%
group_by(Education) %>%
summarise(MntWines_mean= mean(MntWines))
And I get this outputa 1x1 table with just MntWines mean
How do I get the means for each output?