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 <shi...@hotmail.com> 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. > > Thank you very much! > > > ...Tao > > _________________________________________________________________ > Hotmail: Trusted email with Microsoft’s powerful SPAM protection. > > ______________________________________________ > 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. > -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org ______________________________________________ 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.