[R] exportData(foo,"foo.xls","EXCEL") for R ?

Thomas Lumley tlumley at u.washington.edu
Thu Aug 1 01:20:47 CEST 2002

On Wed, 31 Jul 2002, Dowle, Matthew [EQRE] wrote:

> r-help,
> Is there a package available for R which allows you to export data directly
> to .xls, much like exportData(foo,"foo.xls","EXCEL") in S-PLUS ?  If not, is
> anyone working on this, or thinking about working on this?

The simplest solution is to use write.table() to produce a comma-separated
text file, which Excel will read.

The help page for write.table gives an example


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list