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

From: Aric Gregson <aorchid_at_mac.com>
Date: Mon 23 May 2005 - 04:51:05 EST


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



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 Mon May 23 04:55:28 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:00 EST