Skip to content
Prev 327753 / 398502 Next

Does a general latex table-making function exist?

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