[R] Xtable with long column headings/names

BR_email br at dmstat1.com
Mon May 15 19:32:48 CEST 2017

After I generate the xtable table, I manually edited (by inserting 
<br/>) the html header, below.
Is there a way in xtable that I can set some setting to affect my xtable 
Thanks for your reply.

<table border=1>
<caption align="top"> Analysis </caption>
<tr> <th> DECILE </th>
<th> NUMBER OF <br /> INDIVIDUALS <br /> </th>
<th> NUMBER OF <br /> RESPONDERS <br /> </th>
<th> RESPONSE <br /> RATE (%) <br /> </th>
<th> CUM RESPONSE <br /> RATE (%) <br />
</th> <th> CUM LIFT </th>  </tr>


John Kane wrote:
> Can you give us an example. I am having a problem visualizing this.  
> It seems obvious just to put in a line break normally but in xtabs who 
> knows?
> On Monday, May 15, 2017 1:15 PM, Bruce Ratner PhD <br at dmstat1.com> wrote:
> R-help:
> I'm using xtable that produces a table in html with one-line for each 
> of the
> long column headings/names.
> I would like to word wrap the column headings to break into two-lines.
> Any suggestion as to which argument needs adjustment is appreciated.
> Bruce
> ______________________________________________
> R-help at r-project.org <mailto:R-help at r-project.org> mailing list -- To 
> UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html 
> <http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list