[R] How to read an excel data into R?

Patrick Hausmann c18g at zfn.uni-bremen.de
Thu Jun 23 11:11:05 CEST 2005


Hi,

you can use the library "RODBC" to import Excel-Files. This works for me:

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
library(RODBC)
setwd("C:\\R1B2")
channel <-  odbcConnectExcel("pk2003.xls")
tab     <-  sqlFetch(channel, "Tabelle3")
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

HTH
Patrick




More information about the R-help mailing list