Please kindly help.
I want to show only 2 income types "Less than $10,000" and "$75,000 or more". I tried using filter but it does not work for me. (Error in group_vars(x) : object 'income2' not found) when using filter(income2 == "Less than $10,000")
What do I do in order to only show the two income levels I am interested in and not all of them?
Thanks in advance,
brfss2013 %>% count(income2, genhlth) %>% group_by(income2) %>% mutate(prop = n / sum(n))