[R] save the result into a word file

Liviu Andronic landronimirc at gmail.com
Fri Jul 3 16:06:51 CEST 2009


Hello,

On Fri, Jul 3, 2009 at 2:15 PM, Allan Engelhardt<allane at cybaea.com> wrote:
> 1. Cut-and-paste from the R console.  (Cut-and-paste has got to be the
> best computer invention ever.)
>
First option is probably interesting when using in Word a monospace
font for R results. For tables, you can also go via copy from R and
paste in Excel (or OpenOffice Calc), and then switch the table to the
word processor.


> 2. If you want to generate the output automatically from an unattended
> script, try help("cat") and help("file")
>
> 3. Try help("Sweave") for even more automated document production.  Also
> package "odfWeave" and perhaps "R2HTML"
>
>From the HTML options, you can also generate HTML code using xtable or
Hmisc::html(), and then import the formatted results in Word or Excel.
Liviu




More information about the R-help mailing list