Re: [R] Tranferring R results to word prosessors

From: Francisco J. Zagmutt <>
Date: Fri 10 Feb 2006 - 04:38:38 EST

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.

x=ftable(Titanic, row.vars = 1:3)

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

I hope this helps


>From: Tom Backer Johnsen <>
>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 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 : URL : |
> mailing list
>PLEASE do read the posting guide!
> mailing list PLEASE do read the posting guide! Received on Fri Feb 10 05:29:39 2006

This archive was generated by hypermail 2.1.8 : Sat 11 Feb 2006 - 03:06:15 EST