dplyr row_number(): Add unique row number to a dataframe

In this tutorial, we will learn how to add unique row number to each row to a dataframe/tibble. We will use dply’r row_number() function to add unique row number as acolumn to a dataframe using tidyverse first. Then we will also see an example of adding a row number to a dataframe using base R… Continue reading dplyr row_number(): Add unique row number to a dataframe

Exit mobile version