我有这样的酒吧桌(我有什么)。我的问题是我希望最后一行没有颜色条(默认情况下:只有数字)
data(mtcars)
library(knitr)
library(kableExtra)
library(formattable)
library(dplyr)
library(stringr)
mtcars[1:5, 1:4] %>%
mutate(
car = row.names(.),
mpg = color_bar("lightgreen")(mpg),
cyl = color_bar("lightgreen")(cyl),
disp = color_bar("lightgreen")(disp),
hp = color_bar("lightgreen")(hp)
) %>%
select(car, everything()) %>%
kable("html", escape = F) %>%
kable_styling("hover", full_width = F) %>%
column_spec(5, width = "3cm")
先感谢您