Change DT font color conditionally by value in R

Like this:

dt %>% formatStyle(1:3, color = styleInterval(0, c("red", "black")))

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top