Hi I want to present some data with group of people using rmarkdown
some table is large, say 100+ lines, and not all the people want to view so much detail, they may only need to check first 20 lines of the table
So is there a way to show at the beginning 20 rows of the table, but if they want they can unfold the table to see the rest part of the table?
You can use datatable
from DT
package.
For example:
DT::datatable(mtcars, options = list(pageLength = 20))
Shows only first 20 lines. And to show more lines you can change Select N entries
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With