Yes, it is possible to combine extensions, as the DT website has
clearly indicated in beginning of the page:
http://rstudio.github.io/DT/extensions.html. In theory, this is what
you want to do:
m = as.data.frame(round(matrix(rnorm(10000), 100), 5))
m = cbind(ID = seq_len(nrow(m)), m)
library(DT)
datatable(m, extensions = c('Scroller', 'FixedColumns'), options = list(
deferRender = TRUE,
dom = "frtiS",
scrollY = 200,
scrollCollapse = TRUE
))
However, I think there is a conflict (or bug) between Scroller and
FixedColumns. In the above example, only the table header ID is fixed,
and the cells in the ID column are not. I think you need to ask the
DataTables developers to fix it.
Regards,
Yihui