How do I get kable and formattable to work together when creating a table in R?
问题 Both kableExtra and formattable have fantastic features and I'll like to be able to incorporate them both in my tables. Here is the table formatted using formattable: Health_status = c("Very good", "Good", "Fair", "Bad", "Very bad", "Not stated", "Total") Number = c(1032169, 453975, 125502, 22095, 5019, 73528, 1712288) Percent = c(60.3, 26.5, 7.3, 1.3, 0.3, 4.3, 100) Change = c(37672, 15231, 6536, 1988, 525, 30315, 92267) Percent_Change = c(3.8, 3.5, 5.5, 9.9, 11.7, 70.2, 5.7) df <- data