Re: [R] Output a dataframe from R to excel

From: Petr Pikal <petr.pikal_at_precheza.cz>
Date: Tue 15 Mar 2005 - 21:50:37 EST


E.g.

write.excel <- function(tab, ...) write.table( tab, "clipboard", sep="\t", row.names=F)

write.excel(your.data.frame)

and pressing Ctrl-V in Excel copies your.data.frame to Excel

Cheers
Petr

On 13 Mar 2005 at 14:26, Faith G wrote:

> Hi,
> I am trying to output an dataframe from R to Excel file. Can anyone
> tell me how to do it? Thanks a lot. Eg. R dataframe: A B C 1
> 2 1 3 4 2 . . .
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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

Petr Pikal
petr.pikal@precheza.cz



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 Tue Mar 15 21:56:38 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:47 EST