[R] long caption titles for tables

Brian Quinif bquinif at gmail.com
Tue Apr 11 09:55:26 CEST 2006


I am using using the latex() function in the Hmisc package.  I want to
create some table captions that are relatively long and need to take
up more than one line.

When I do this, the LaTeX output has the majority of the text on one
line with the remainder spilling over into the second line as if it
were a normal sentence.

How can I get a long caption such as "Estimated HOPE Effects on
Typical First-Year Students, 1990/1995 Robust Std. Errors in
Parentheses" to appear as

Estimated HOPE Effects on
Typical First-Year Students, 1990/1995
Robust Std. Errors in Parentheses

where that would be centered above the table?

Thanks,

BQ




More information about the R-help mailing list