当您合并单元格时,是否有一种聪明的方法可以使水平边框表变宽?(在下面的示例中,它还不是表宽的)。
或者我应该写一个函数来计算正确的指数?
library(flextable)
library(officer)
library(dplyr)
myft <- flextable(head(mtcars),
col_keys = c("am", "carb", "gear", "mpg", "drat" ))%>%
theme_vanilla()%>%
merge_v(j = c("am"))%>%border(border.bottom = fp_border(style = "solid", width=2), i=c(3,6), part="body")
myft