Skip to content

Instantly share code, notes, and snippets.

@mwfrost
Created January 18, 2011 18:21
Show Gist options
  • Select an option

  • Save mwfrost/784889 to your computer and use it in GitHub Desktop.

Select an option

Save mwfrost/784889 to your computer and use it in GitHub Desktop.
Open and query an Excel workbook in R
channel <- odbcConnectExcel('../file name.xls', readOnly = TRUE)
dat <- sqlQuery(channel, 'SELECT * FROM [workbook name$]', stringsAsFactors=FALSE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment