So my task is to "extract and display the soil types of the two lowest altitude plots using a single line of R code", and I'm not sure of the best way of doing this.
At the moment my command looks like this:
conservation$soil[conservation$alt < 8]
You can order the lines of
order(conservation$alt) in a descending fashion. Or
order(-conservation$alt) for the lines in ascending order.
tail(df$a, 2) will return the last two entries of
head(df$a, 2) will give the first two entries.
Combining these functions will give you: