How to read data from Microsoft Access .accdb database files into R?

前端 未结 8 1124
夕颜
夕颜 2020-12-16 14:05

The RODBC documentation suggests it is possible, but I am not sure how to read data from a Microsoft Access (the new .accdb format) file with this package into

8条回答
  •  無奈伤痛
    2020-12-16 14:15

    The best method that worked for me

    #Package
    library(RODBC)
    
    #Defining the path
    datab<-file.path("Main_File.accdb")
    channel<-odbcConnectAccess2007(datab)
    
    #reading the individual files inside the Main
    table<-sqlFetch(Channel,"File_1")
    

    This will fetch data from the "File_1" inside the Main_File.

    But the above code did not support the UTF encoding.

提交回复
热议问题