Is there a way to give a name to the index column of a datatable?
library(DT)
datatable(iris)
CodePudding user response:
A possible solution:
library(DT)
library(dplyr)
iris %>%
rownames_to_column("myid") %>%
datatable(iris, rownames = F)