从R导出类似表格的最佳方法(保留脚注的格式,标题的加粗等)是从R到Excel XLS /打开文档格式的最佳方法是什么?
是否可以在RMarkdown中完全转换HTML输出或直接导出到Excel?
library(knitr)
library(kableExtra)
dt <- mtcars[1:5, 1:6]
kable(dt, align = "c") %>%
kable_styling(full_width = F) %>%
footnote(general = "Here is a general comments of the table. ",
number = c("Footnote 1; ", "Footnote 2; "),
alphabet = c("Footnote A; ", "Footnote B; "),
symbol = c("Footnote Symbol 1; ", "Footnote Symbol 2"),
general_title = "General: ", number_title = "Type I: ",
alphabet_title = "Type II: ", symbol_title = "Type III: ",
footnote_as_chunk = T, title_format = c("italic", "underline")
)
输出文件将需要具有多个工作表,例如上面的+另一个作为标题,并用白色背景填充。
basictabler / Rmarkdown混合可能是一个主意?
谢谢。