Alex Rivera | Logout

List xlsx sheetnames with R

Asked 2012-09-12T02:14:14.423
13

Is it possible to generate a list of sheetnames within an xlsx file? Or perhaps, can I check if a sheet name exists, and if not, proceed with some designated function?

Edit
Report

1 Answer

2

You can also do this with the RODBC package:

h <- odbcConnectExcel2007("file.xlsx")
sqlTables(h)
answered 2012-09-12T05:04:31.457

Your Answer