[R] wrap long lines in table using "latex" in Hmisc

Tao Shi shitao at hotmail.com
Sat Feb 27 00:54:10 CET 2010


Hi Ista,

Thanks!  I missed that.

...Tao

----------------------------------------
> From: istazahn at gmail.com
> Date: Fri, 26 Feb 2010 17:48:32 -0500
> Subject: Re: [R] wrap long lines in table using "latex" in Hmisc
> To: shitao at hotmail.com
> CC: r-help at r-project.org
>
> Hi Tao,
> Just set the appropriate *.just argument, e.g.:
>
> Dat <- data.frame(x1 = rep("this value consists of a long string of
> text", 5), x2 = rep("this value consists of an even longer string of
> text", 5))
>
> library(Hmisc)
> latex(Dat, col.just = rep("p{1in}", 2))
>
> You can also set justification for column headings, column group
> headings etc. See ?latex for details.
>
> Best,
> Ista
>
>
> On Fri, Feb 26, 2010 at 3:37 PM, Tao Shi  wrote:
>>
>> Hi list,
>>
>> Is there a way to control long-line wrapping in a table using "latex" function in Hmisc or any other functions?  It seems I can't find any examples.
>>
[[elided Hotmail spam]]
>>
>>
>> ...Tao
>>
>> _________________________________________________________________
>> Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
>>
>> ______________________________________________
>> R-help at 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.
>>
>
>
>
> --
> Ista Zahn
> Graduate student
> University of Rochester
> Department of Clinical and Social Psychology
> http://yourpsyche.org
 		 	   		  
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.



More information about the R-help mailing list