Last week, a viewer sent us a request via the YouTube channel asking if we could go over various ways of conditioning formatting DT tables.
We use DT a lot, especially in shiny apps, flexdahboards, and Rmarkdown reports. DT is my preferred table package when I need to make interactive tables that allow the user to sort and filter data. Conditional formatting is pretty easy in DT and this week, Ellis and I talk through using the basic functions, styleEqual() and styleInterval() to create conditionally formatted columns. We also go through more advanced conditional formatting features such as gradient conditional formatting and conditionally formatting entire rows based on the conditions of a single column.
To watch our screen cast, CLICK HERE.
To access our code, CLICK HERE.