powered by
Add a column of row numbers to a data frame
add_rowindex(x)
A data frame
The same data frame with a column of 1-based integers named .row.
.row
# NOT RUN { mtcars %>% add_rowindex() # }
Run the code above in your browser using DataLab