This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library("RODBC") #load package | |
db<-file.path("C:/path/to/your/database.accdb") #connect database. | |
#Note the UNIX style slash (/). "\" is "escape character" so all "\"you should replace either with "/" or "\\" | |
channel<-odbcConnectAccess2007(db) #internal RODBC function | |
dataSetName<-sqlFetch(channel,"TableName") #read particular table from Access database file. |