首页 > 解决方案 > 如何解决 kable 在 r markdown 中生成的表格脚注中的空白?

问题描述

正如你可以从下面的图片中看到的。note和上下文 之间存在差距。

在此处输入图像描述

我使用的代码如下。有什么想法可以消除差距吗?


kable(summarize(df.sum, group = "Experiment", test = T, digits = 1, show.NAs = F),
             row.names = F, caption = 'Summary Statistics for Treated and Control Groups',
             booktabs = T) %>% kable_styling(latex_options = c('striped', 'hold_position')) %>%
  footnote(general = 'DM8OZ indicates the daily max 8-hour ozone concentration; 
Daily_PM2.5 is the daily average of PM2.5; Tavg is the daily average temperature; 
Prcp is the daily accumulated precipitation. The last column in the table represents the testing results of null 
hypotheses that the treated and control groups are not statistically different. ',
footnote_as_chunk = T, threeparttable = T, fixed_small_size = T)


标签: r-markdownkable

解决方案


推荐阅读