目前kableExtra 0.5.1
只支持将一个表中的几行归为一类 。 我不知道是否有任何的调整,以将一个表中的几行分成许多类编程像group_rows(kable_input = x, group_label = c("Group 1", "Group 2"), start_row = c(1, 5), end_row = c(2, 6))
谢谢
library(knitr)
library(kableExtra)
x <- knitr::kable(head(mtcars, 10), "latex")
kableExtra::group_rows(kable_input = x, group_label = c("Group 1", "Group 2"), start_row = c(1, 5), end_row = c(2, 6))