How to select top and bottom rows by a column simultaneously

In this tutorial, we will learn how to select top and bottom rows of a dataframe based on the values of a column with tidyverse in R. Here we will see a specific approach to get top and bottom rows when the values of the column of interest has both positive and negative values. This… Continue reading How to select top and bottom rows by a column simultaneously

Exit mobile version