[R] how do i save data to txt file? are there marcos to save tables to word?

John Kane jrkrideau at yahoo.ca
Mon Mar 17 18:33:07 CET 2008


--- Tom Willems <Tom.Willems at var.fgov.be> wrote:

> Dear R-ussers,

> One other thing i d like to know is how to save a
> Table output from R, directly to a table in word?
> copy paste destroys the layout of the table.

One way that is not absolutely direct but which works
nicely is the xtable package. It will export tables in
html format that can be opened in Word.

An alternative is to save the table in csv format
(write.csv) and edit it in a spreadsheet like Excel or
OpenOffice.org Calc.


      Looking for the perfect gift? Give the gift of Flickr!



More information about the R-help mailing list