Clean tables
Tables serve as a robust means of presenting information.
With R, there are numerous approaches to crafting tables, each offering unique advantages. Here are my two preferred methods for incorporating tables into Quarto documents.
1️⃣ Interactive tables with DT
Here is one of my go-to techniques when showcasing Quarto 😍.
With just two extra lines of code, you can unveil an interactive table that allows:
- sorting
- filtering
- searching
- pagination
This feature is incredibly handy to display your input dataset if it isn't too big. It offers readers the convenience of accessing the data directly within your report.
The magic behind this functionality lies in the DT
library. DT stands for DataTables
: the JavaScript library behind it.
Installing it is a breeze:
install.packages("DT")
This lesson is for members only! 😔
Become a member now to access the full course with a lifetime access!
Or Login