Dear R users:

When I create a table without Major Column headings, my *regular* column 
headings appear correct in the typeset latex file.  The major row heading and 
row groups are as they should.

w <- latex(mytab,title="",file="tab/my.tex",ctable=TRUE,caption="Descriptive 
statistics by 
Covariate",caption.loc="bottom",label="tab:mytab",where="!htbp",n.rgroup=c(3,3),rgroup=c("Type
 I","Type II"))

However, I'm trying to use cgroup and n.cgroup to group my columns under 
appropriate heading as:

w <- latex(mytab,title="",file="tab/mytab.tex",ctable=TRUE,caption="Descriptive 
statistics by 
Covariate",caption.loc="bottom",label="tab:mytab",where="!htbp",n.rgroup=c(3,3),rgroup=c("Type
 I","Type II"),n.cgroup=c(2,2,2,2,1),cgroup=c("Type A","Type B","Type C","Type 
D","n"),rowlabel="",size="scriptsize")

When I use this code (there are 9 columns total in R object "mytab") the 
resulting Major Column headings are typeset properly, however the colheads 
themselves are missaligned.  The first column heading is over the row labels 
(Type I and Type II), and the rest of the column headings are spaced offset to 
the major column headings, so don't line up underneath.

I've searched through google and haven't found anything, and I've been 
experimenting with every combination of latex() options I can think of, and 
nothing is working.  Any suggestions/solutions are greatly appreciated!

My Hmisc version is: 3.8-3
and R version is: 2.8.1 

 
                                          
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to