Skip to content
Back to formatted view

Raw Message

Message-ID: <20050315010823.14015.qmail@web80108.mail.yahoo.com>
Date: 2005-03-15T01:08:23Z
From: Tomas Aragon
Subject: Output a dataframe from R to excel
In-Reply-To: 6667

--- 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