I want to do the following: Select the highest and lowest value in 2020. I also want to add a column that shows the increase in cost from 2007 to 2020 and select the highest and lowest value there.
But when I try:
most_expensive <- university_cost[which.max("2020")]
or
most_expensive <- university_cost[which.max(2020)]
It just returns 50 rows of University names. I have no idea why.