You could use purrr::map
with tibble::rowid_to_column
library(tidyverse)
lst <- list(mtcars, iris)
map(lst, ~rowid_to_column(.x, ".id"))
#[[1]]
# .id mpg cyl disp hp drat wt qsec vs am gear carb
#1 1 21.0 6 160.0 110 3.90 2.620 16.46 0 1 4 4
#2 2 21.0 6 160.0 110 3.90 2.875 17.02 0 1 4 4
#3 3 22.8 4 108.0 93 3.85 2.320 18.61 1 1 4 1
#4 4 21.4 6 258.0 110 3.08 3.215 19.44 1 0 3 1
#5 5 18.7 8 360.0 175 3.15 3.440 17.02 0 0 3 2
#...
#
#[[2]]
# .id Sepal.Length Sepal.Width Petal.Length Petal.Width Species
#1 1 5.1 3.5 1.4 0.2 setosa
#2 2 4.9 3.0 1.4 0.2 setosa
#3 3 4.7 3.2 1.3 0.2 setosa
#4 4 4.6 3.1 1.5 0.2 setosa
#5 5 5.0 3.6 1.4 0.2 setosa
#...
For row names (instead of row numbers) simply replace rowid_to_column
with rownames_to_column
.