Skip to content

Instantly share code, notes, and snippets.

@Dulani
Created October 10, 2017 16:53
Show Gist options
  • Save Dulani/4527a3859d1e4f9e19907ea4d5158818 to your computer and use it in GitHub Desktop.
Save Dulani/4527a3859d1e4f9e19907ea4d5158818 to your computer and use it in GitHub Desktop.
R DT datatable options
#Adjust the size of the scrollbar and the number of items on a "page" and also setting the height of the scroll bar.
library(tidyverse)
library(DT)
mtcars %>%
DT::datatable(., style ="default", options = list("scrollY" = "400px", "pageLength"= 120))
# An alternative style choice is style ="bootstrap"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment