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

From: John Kane <>
Date: Mon, 17 Mar 2008 13:33:07 -0400 (EDT)

> 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 Calc.

      Looking for the perfect gift? Give the gift of Flickr! mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 17 Mar 2008 - 17:42:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 17 Mar 2008 - 18:30:22 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive