Changing the font size of headers of kableExtra table
问题 I am trying to change the font size of various headers in the following table. library(knitr) library(kableExtra) dt <- mtcars[1:5, 1:6] kable(dt) %>% kable_styling(c("striped", "bordered")) %>% add_header_above(c(" ", "Group 1" = 2, "Group 2" = 2, "Group 3" = 2)) %>% add_header_above(c(" ", "Group 4" = 4, "Group 5" = 2)) %>% add_header_above(c(" ", "Group 6" = 6)) Image of the table from the code above: However, I would like the header group 6 to be far bigger than Group 4 and 5 and groups 1