[R] Does a general latex table-making function exist?

Frank Harrell f.harrell at Vanderbilt.Edu
Wed Jul 31 23:41:22 CEST 2013


Duncan,

I had read your excellent tables package vignette at 
http://cran.r-project.org/web/packages/tables/vignettes/tables.pdf when 
it first came out.  It is extremely impressive.  I'm glad to be reminded 
to give it another look.

Is there a way to make the special symbols n and 1 refer to the number 
of non-missing observations rather than the length of a vector?

Do you feel like taking on this challenge?  An example of an irregular 
table I'm thinking of is the following

                Females              Males
              Q1 Med Q3   (n)       Q1 Med Q3   (n)
Age          25  49 63 (1016)     26  50 64  (1767)

Canadians
  Weight (kg) 57  63 74 ( 243)     67  73 90  ( 401)

Canadians could mean country=='Canada'.

Thanks!
Frank

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



More information about the R-help mailing list