使用 xtable 将多个表保存在同一个 .tex 文件中

Save multiple tables in same .tex-file using xtable

假设我有六个大小为 50*5 的矩阵存储在一个数组中,例如,

my.array<-array(1:1500, dim=c(50,5,6))

并希望将它们保存为同一个 .tex 文件中的多个表。即,我希望最终结果是一个包含六个独立乳胶表的 tex 文件,而不必手动保存每个矩阵,然后将它们复制到一个 .tex 文档中。最好的方法是什么,最好使用 xtable?

使用: append=TRUE 在函数的参数列表中 print.xtable

参见:https://www.rdocumentation.org/packages/xtable/versions/1.8-4/topics/print.xtable