
Skandh Gupta started this conversation 4 months ago.
what to do when rmarkdown using kable with list of data.tables loses table formatting
How to maintain table formatting in rmarkdown when using kable with a list of data.tables?
codecool
Posted 4 months ago
To maintain table formatting in R Markdown when using kable with a list of data.tables, you can use the kableExtra package. Here are some steps to help you:
Install and Load kableExtra:
Install the kableExtra package if you haven't already.
Load the package in your R Markdown document.
Create a List of data.tables:
Ensure your list contains data.tables that you want to format and display in a table.
Use kable with kableExtra:
Use the kable function from the knitr package to create the table.
Apply kableExtra functions to style and format the table.