[R] Output a dataframe from R to excel

Petr Pikal petr.pikal at precheza.cz
Tue Mar 15 11:50:37 CET 2005


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 at 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 at precheza.cz




More information about the R-help mailing list