stefan.petersson wrote:
> 
> 
> I'm trying to typeset at simple crosstable with the Hmisc latex function.
> And I have two problems.
> 
> 1. How do I make all columns the same width? The Latex function seems very
> unwilling to break the 'cgroup' labels and the factor level labels. Please
> have look at this screenshot that shows my problem:
> 
> 

Snippets for custom width
\newcolumntype{R}[1]{>{\raggedright\hspace{0pt}\arraybackslash}p{#1}}

<<databasefields,results=tex>>=
col.just = c("l","l","R{9cm}") # You can use past to construct the width be
code
latex(... col.just=col.just,


Dieter



-- 
View this message in context: 
http://n4.nabble.com/Formatting-cgroup-and-factor-level-labels-in-Hmisc-latex-function-tp1290232p1310708.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to