I believe this is a simple question, I think I just don't have the ability to logically think it out to be able to search it.
I have a table of data:
Column 1: Sex (M/F)
Column 2 Plays Sport (Y/N)
I need a summary table which shows:
Sex | Plays Sport Yes | Plays Sport No
I can't for the life of me figure out how to do it with dplyr.
Solution in base r would be preferred if not too complicated.