A little more on topic is that there are tools for R to nicely format output.
The simplest is probably the R2wd package which will transfer objects and text to word, you can send a matrix or data frame to word as a nicely formatted table or wdVerbatim will send output to word but make sure that the font is the correct type to make things line up. If you are going to be doing a lot of this then you should investigate the variations on Sweave (Sword, knitr, odfWeave, etc.) which allow you to create a template file with R code and report text, then process it to replace the R code with its output. On Tue, Feb 7, 2012 at 9:07 PM, hithit168 <ccchri...@live.com> wrote: > Hi there, > > Everytime when I paste My R output in WORD, the columns couldn't line up > nicely like they appear in R console. Is there a way to fix this problem? > Thanks for any help! > > > time n.risk n.event survival std.err lower 95% CI upper 95% CI > 6 21 3 0.857 0.0764 0.707 1.000 > 7 17 1 0.807 0.0869 0.636 0.977 > 10 15 1 0.753 0.0963 0.564 0.942 > 13 12 1 0.690 0.1068 0.481 0.900 > 16 11 1 0.627 0.1141 0.404 0.851 > 22 7 1 0.538 0.1282 0.286 0.789 > 23 6 1 0.448 0.1346 0.184 0.712 > > -- > View this message in context: > http://r.789695.n4.nabble.com/How-to-have-columns-lined-up-tp4367928p4367928.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com ______________________________________________ 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.