[R] Hmisc/Design and problem with cgroup

Aric Gregson aorchid at mac.com
Sun May 22 20:51:05 CEST 2005


On 5/17/05 21:44 Frank E Harrell Jr sent the following:

>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'), 
>>     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
>> 
>See if a modified version at
>http://biostat.mc.vanderbilt.edu/cgi-bin/cvsweb.cgi/Hmisc/R/latex.s
>fixes your problem.

Dr. Harrell,

Thanks for your help. I have downloaded latex.s, but am unable to figure
out where it should go. How do I ensure that it is called when I load
Hmisc? Do I patch it against R/Hmisc?

I have a local directory structure in ~/Library/R/library/Hmisc/:

-rw-r--r--  1 user  user  594 12 May 19:20 CITATION
-rw-r--r--  1 user  user  989 12 May 19:20 DESCRIPTION
drwxr-xr-x  3 user  user  102 12 May 19:20 Meta/package.rds
drwxr-xr-x  3 user  user  102 12 May 19:20 R/Hmisc
drwxr-xr-x  3 user  user  102 12 May 19:20 libs/Hmisc.so

Thanks for your patience.

aric




More information about the R-help mailing list