嗨,我用 制作了这张很棒的桌子kableExtra
,但我唯一的问题是行的高度并不总是相等。有谁知道解决这个问题的方法?
我的桌子:
例如,如您所见,项目编号 22(第 6 行)的行具有比其他行更大的高度(间距)。
我的代码:
my_column_names = c("Item number", "Item",
"Emotion", "Social",
"At Home", "Body", "Emotion",
"Social 1", "Social 2",
"At Home", "Body")
kable(df1,
format = "latex", booktabs = TRUE,
col.names = my_column_names,
caption = "Factor loadings for the 4 and 5 Factor Model") %>%
kable_styling(latex_options = c("striped", "hold_position"),
full_width = FALSE) %>%
add_header_above(c(" " = 2,
"4 Factor Model " = 4, "5 Factor model" = 5)) %>%
add_header_above(c(" " = 2,
"Model" = 9)) %>%
kableExtra::landscape()