Re: [R] Tranferring R results to word prosessors

From: Francisco J. Zagmutt <gerifalte28_at_hotmail.com>
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.

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 <backer@psych.uib.no>
>To: r-help@stat.math.ethz.ch
>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 : backer_at_psych.uib.no URL : http://www.galton.uib.no/ |
>+----------------------------------------------------------------+
>
>______________________________________________
>R-help@stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide!
>http://www.R-project.org/posting-guide.html



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html 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