Skip to content
Back to formatted view

Raw Message

Message-ID: <r02010500-1039-5B331D3EC72C11D9B5AC000A959B3D22@[10.0.1.205]>
Date: 2005-05-17T23:35:30Z
From: Aric Gregson
Subject: Hmisc/Design and problem with cgroup
In-Reply-To: <7FFEE688B57D7346BC6241C55900E730B6FF5D@pollux.bfro.uni-lj.si>

Hello,

I am trying to use the following to output a table to latex:

cohortbyagesummary <- by(data.frame(age,ethnicity), cohort, summary) 

w <- latex.default(cohortbyagesummary, 
    caption="Five Number Age Summaries by Cohort",
    label="agesummarybycohort", 
    cgroup=c('hello','goodbye','hello'),
    colheads=c("Age","Ethnicity"),
    extracolheads=c('hello','goodbye'), # demonstration of subheadings
    greek=TRUE,
    ctable=TRUE)
    
I am not able to get the major column headings of cgroup to work. I
receive the error:
    Object cline not found
    
I do not see in the examples or documentation that you must specify
cline or anything. 

Any suggestions? Thanks very much,

aric

R 2.0.1
Design 2.0-11
Hmisc  3.0-5
OS X 10.3.9