[R] Output a dataframe from R to excel

Tomas Aragon aragon at berkeley.edu
Tue Mar 15 02:08:23 CET 2005


--- Faith G <gaof at u.washington.edu> 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
> .    .    .    
> 

Try:
write.table(mydf, "c:/mydf.csv", sep=",", row.names=FALSE)

Then open 'mydf.csv' in Excel.

Tomas
http://www.epitools.net




More information about the R-help mailing list