For the fourth question, it asks for the year that has the most toatl number of births in the U.S.. Im able to find the highest number of births by doing max(present), but this doesn't give the year that it is connected with. Has anyone found out a way to find it without just looking in the table?
How about trying "which.max" command?
It will give you the index of the maximum.
Then, you could adjust this index to extract the year
by using the command in "Slicing and extracting data"
in the reference card.
There might be a better way.
Let me know if someone has another approach.