Exercise: Select the top 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 10 lowest paid professors by selecting the first 10 rows using the head() function.

Output

Submit code to see output here.

Select first or last rows of a data frame