Skip to content

how to import data from excel to R

3 messages · shwetank, jim holtman, Flavio Barros

#
The simplest way, in my opinion is:
delimited.
>mydata<-read.csv(file.choose())
             this will open a dialog box will open and select your .csv
file.
        now the data will be saved as "mydata" is actually a data frame. 

Enjoy,
regards.
 



--
View this message in context: http://r.789695.n4.nabble.com/how-to-import-data-from-excel-to-R-tp966629p4649487.html
Sent from the R help mailing list archive at Nabble.com.
#
Also checkout the XLConnect package since it can read/write EXCEL
files directly so that you do not have to go through the step of
creating a CSV file.  Really nice when you want to create an Excel
file with multiple worksheets containing different phases of your
analysis.
On Wed, Nov 14, 2012 at 8:45 AM, shwetank <shwetank at iasri.res.in> wrote: