Skip to content
Prev 87101 / 398506 Next

read file of EXCEL format

XinMeng wrote:
Here is one way to read it directly:

library(RODBC)

z <- odbcConnectExcel("d:/data.xls")
       mydata <- sqlFetch(z, "Sheet1")
       close(z)

# Replace Sheet1 with the name of the worksheet to be read.