![Get first n rows & last n rows - head(), tail(), slice(),top_n() function in R - DataScience Made Simple Get first n rows & last n rows - head(), tail(), slice(),top_n() function in R - DataScience Made Simple](https://www.datasciencemadesimple.com/wp-content/uploads/2020/09/head-and-tail-function-in-R-7.png?ezimgfmt=rs:382x197/rscb1/ng:webp/ngcb1)
Get first n rows & last n rows - head(), tail(), slice(),top_n() function in R - DataScience Made Simple
![Get first n rows & last n rows - head(), tail(), slice(),top_n() function in R - DataScience Made Simple Get first n rows & last n rows - head(), tail(), slice(),top_n() function in R - DataScience Made Simple](https://www.datasciencemadesimple.com/wp-content/uploads/2020/09/head-and-tail-function-in-R-1.png)
Get first n rows & last n rows - head(), tail(), slice(),top_n() function in R - DataScience Made Simple
Hadley Wickham on Twitter: "@dgkeyes top_n() is being replaced by slice_max()/slice_min() in the next version of dplyr because it's so confusing" / Twitter
![Get first n rows & last n rows - head(), tail(), slice(),top_n() function in R - DataScience Made Simple Get first n rows & last n rows - head(), tail(), slice(),top_n() function in R - DataScience Made Simple](https://www.datasciencemadesimple.com/wp-content/uploads/2020/09/head-and-tail-function-in-R-2.png?ezimgfmt=rs:382x160/rscb1/ng:webp/ngcb1)
Get first n rows & last n rows - head(), tail(), slice(),top_n() function in R - DataScience Made Simple
![Get first n rows & last n rows - head(), tail(), slice(),top_n() function in R - DataScience Made Simple Get first n rows & last n rows - head(), tail(), slice(),top_n() function in R - DataScience Made Simple](https://www.datasciencemadesimple.com/wp-content/uploads/2020/06/head-and-tail-function-in-r-slicetop_n-13.png?ezimgfmt=rs:382x128/rscb1/ng:webp/ngcb1)
Get first n rows & last n rows - head(), tail(), slice(),top_n() function in R - DataScience Made Simple
![dplyr 0.5 is awesome, here's why. dplyr is already amazing. It is the… | by Kan Nishida | learn data science dplyr 0.5 is awesome, here's why. dplyr is already amazing. It is the… | by Kan Nishida | learn data science](https://miro.medium.com/max/1838/1*L8R62QSqBHMAf4fYKSTLOw.png)