The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Stevedas (3) [Avatar] Offline
#1
On P36 "Importing data from excel" I created an excel file called test in the working dirctory and used the following code similar to the example on pages 36 to 37:

library(RODBC)
> channel <-odbcConnectExcel("test.xls"smilie
> mydataframe <- sqlFetch(channel,"Sheet1"smilie

but I receive the folowing error:
‘Sheet1’: table not found on channel

The excel worksheet is definitely called "Sheet1". and the excel file is called test.xls. I have no idea why this is not working