目前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))