Hmisc和LaTeX multicloumn

时间:2017-01-15 21:30:29

标签: latex hmisc

我正在尝试在LaTeX表中创建一个多列。手动执行此操作很容易,但我从许多报告生成的数据框创建这些表格,因此手动执行此操作非常耗时。我所拥有的是:

cat(cfrm, file="table2.tex") # this categotises the file
t2<-latex(tabl2, file="table2.tex", cellTexCmds = cellTex, rowname=NULL, colheads=c(paste("Recent Average Catch (",minyear," - ",maxyear,")",sep=""), "Skipjack", "Yellowfin","Bigeye","SP Albacore"),  
          caption=paste("Key fishery statistics averaged from ",minyear," to C$_{latest}$ for each of the four main target tunas. Where C$_{latest}$ is the last year in each species assessment model. \\label{tab2}", sep=""), caption.lot=NULL, caption.loc='top', 
          longtable=TRUE, collabel.just=c("c","c","c","c","c"), size="small", 
          col.just=c("l","c","c","c","c"), colnamesTexCmd=c("apple") , append=TRUE)

附表中的五个人: enter image description here

我想要做的是将蓝色行设置为多列。

0 个答案:

没有答案