Exercise: Select the bottom of a data frame

The salaries_sort dataset contains the 2008-09 nine-month academic salary for professors from a college in the US. The dataset is sorted by salary in ascending order.

Inspect the 20 highest paid professors by selecting the last 20 rows using the tail() function.


Submit code to see output here.

Select first or last rows of a data frame