Take a look at the facilities to write HTML output in library(R2HTML).  If 
you write an HTML file, you can then easily copy and paste it into your Word 
document, or from MS Word you can use the Insert menu. i.e.

library(R2HTML)
x=ftable(Titanic, row.vars = 1:3)
HTML(x,"Titanic.html")

Then from MS Word use Insert-> File and select Titanic.html and see the 
results.

I hope this helps

Francisco



>From: Tom Backer Johnsen <[EMAIL PROTECTED]>
>To: [email protected]
>Subject: [R] Tranferring R results to word prosessors
>Date: Thu, 09 Feb 2006 15:41:09 +0100
>
>I have just started looking at R, and are getting more and more irritated
>at myself for not having done that before.
>
>However, one of the things I have not found in the documentation is some
>way of preparing output from R for convenient formatting into something
>like MS Word.  An example:  If you use summary(lm(....)) you get nice
>output.  However, if you try to paste that output into the word processor,
>all the text elements are separated by blanks, and that is not optimal for
>the creation of a table (in the word processing sense).
>
>Is there an option to generate tab-separated output in R ? That would solve
>the problem.
>
>Tom
>
>+----------------------------------------------------------------+
>| Tom Backer Johnsen, Psychometrics Unit,  Faculty of Psychology |
>| University of Bergen, Christies gt. 12, N-5015 Bergen,  NORWAY |
>| Tel : +47-5558-9185                        Fax : +47-5558-9879 |
>| Email : [EMAIL PROTECTED]    URL : http://www.galton.uib.no/ |
>+----------------------------------------------------------------+
>
>______________________________________________
>[email protected] mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! 
>http://www.R-project.org/posting-guide.html

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to