Add a column of row numbers to a data frame
Add a column of row numbers to a data frame
add_rowindex(x)
x |
A data frame |
The same data frame with a column of 1-based integers named .row
.
mtcars %>% add_rowindex()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.