Posted By

obi on 07/14/09


Tagged

config R


Versions (?)

connecting to .xls files


 / Published in: R
 

URL: http://www.statmethods.net/input/importingdata.html

  1. # first row contains variable names
  2. # we will read in workSheet mysheet
  3.  
  4. library(RODBC)
  5. channel <- odbcConnectExcel("c:/myexel.xls")
  6. mydata <- sqlFetch(channel, "mysheet")
  7. odbcClose(channel)

Report this snippet  

You need to login to post a comment.