can you change the r default table length when outputting with the dt package?

You can change it to 3 by datatable(mtcars, options = list(dom = 't', pageLength = 3)).

This will get you your desired results:

datatable(mtcars, options = list(dom = 't',
  lengthMenu = list(c(25, 100, -1), c('25', '100', 'All')),
  pageLength = 25
))

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top