Re: [R] Hmisc/Design and problem with cgroup

From: Frank E Harrell Jr <f.harrell_at_vanderbilt.edu>
Date: Wed 18 May 2005 - 12:44:27 EST

Aric Gregson wrote:
> 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
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
See if a modified version at
http://biostat.mc.vanderbilt.edu/cgi-bin/cvsweb.cgi/Hmisc/R/latex.s fixes your problem.

You don't need .default after latex.

Frank

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed May 18 12:48:56 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:50 EST