Exercise: Select the top from the bottom data frame

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

Inspect the 10 professors around the median salary by

  1. Selecting the bottom 200 professors using the tail() function
  2. Selecting the top 10 professors out of the bottom 200
Output

Submit code to see output here.

Select first or last rows of a data frame