library(scmamp)
writeTabular(data,
savetex.names, # latex 文件名, 以.tex结尾
caption = caption, # caption 名字
print.col.names = TRUE, # latex table 中是否显示列名
print.row.names = FALSE, # 是否显示rownames(或行号)
digits = 4, #(数据小数点位数)
wrap.as.table = TRUE, # 是否封装成单独的lable
table.position = "hbtp", # latex table在文章中位置 h here t 本页的上方 b 本页的下方 p 自动调整
caption.position = "t", # caption的位置, t表示在top
centering = TRUE #table在latex文件中是否居中显示
)
R table to latex table
最新推荐文章于 2025-02-06 20:48:04 发布
本文介绍如何利用R语言中的scmamp包将数据导出为LaTeX格式的表格。主要覆盖了writeTabular函数的使用方法,包括设置LaTeX文件名、表格标题、是否显示列名及行名、数据精度、表格位置等内容。
4万+

被折叠的 条评论
为什么被折叠?



