Re: [R] Xtable with long column headings/names

2017-05-16 Thread BR_email
John: Sorry, but I do not understand what you have done. It seems like you hard coded the format I want, correct? Bruce John Kane wrote: Hi Bruce, We don't need all that code :) All that is required is the data.fame being used in the xtable command and the actual xtable commands. Below is

Re: [R] Xtable with long column headings/names

2017-05-16 Thread BR_email
John: Did not mean to take a short-cut, but I thought the code was not needed. Your follow-up is appreciated. Here's the code. I want the column headings to wrap around into two lines, not one long heading. Any help is greatly sought. Thanks. Bruce ~~ Response <- rbinom(50,1,0.2) yhat <- run

Re: [R] Xtable with long column headings/names

2017-05-15 Thread John Kane via R-help
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 wrote: R-help: I'm using xtable that produces a table in html with one-line for each of t

Re: [R] Xtable with long column headings/names

2017-05-15 Thread BR_email
John: Here is the code of my xtable: TABLE <-xtable(dec_analy, digits = c(0,0,0,0,2,2,0), align = "ccc", latex.environments = "center", caption = "Analysis ") print.xtable(TABLE, type="html",file="C:/R_Data/Table.html", include.rownames

Re: [R] Xtable with long column headings/names

2017-05-15 Thread BR_email
John: After I generate the xtable table, I manually edited (by inserting ) the html header, below. Is there a way in xtable that I can set some setting to affect my xtable table? Thanks for your reply. Bruce Analysis DECILE NUMBER OF INDIVIDUALS NUMBER OF RESPONDERS RESPONSE RA

[R] Xtable with long column headings/names

2017-05-15 Thread Bruce Ratner PhD
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 ___