This is a really easy question but for some reason I cannot find the answer on R cheat sheets.
I have a table that looks like this:
Number of People Income Per Person
5 800
4 300
6 200
I want to expand the number of rows so that I have one row for each person, instead of one row that just says, "Number of people." So, 5 + 4 + 6 = total of 15 rows. How can I do this using dplyr or tidyr?
Thank you! - New R User