--- Faith G <[EMAIL PROTECTED]> 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

______________________________________________
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

Reply via email to