Get first and last rows of a data frame – Snippet #85

Discover how to get first and last rows of a data frame with R