[問題] ODBC和read.odbc.ffdf
[問題類型]:
程式諮詢(我想用R 做某件事情,但是我不知道要怎麼用R 寫出來)
[軟體熟悉度]:
入門(寫過其他程式,只是對語法不熟悉)
[問題敘述]:
最近需要讀一個約2,000,000*10的data
在Microsoft Access裡面
檔案類型是~.mdb
試過用sqlQuery(channel, "select * from table_name")
結果出現cannot allocate vector of size XX MB
後來找到ETLUtils pkg
但在讀檔案時顯示
read.odbc.ffdf 1..Error in as.POSIXlt.character(x, tz, ...) :
character string is not in a standard unambiguous format
貌似是日期格式錯誤
但是不知道該如何修改
也沒有相關參數設定
想請問有沒有別的方法可以讀入這筆資料
[程式範例]:
代碼很短就直接貼了
library(RODBC)
library(ETLUtils)
channel <- odbcConnectAccess("Myfile.mdb")
Ldata <- read.odbc.ffdf(
query = "select * from mytable_name",
VERBOSE = TRUE)
[環境敘述]:
R version 3.2.1 (2015-06-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8 x64 (build 9200)
locale:
[1] LC_COLLATE=Chinese (Traditional)_Taiwan.950
[2] LC_CTYPE=Chinese (Traditional)_Taiwan.950
[3] LC_MONETARY=Chinese (Traditional)_Taiwan.950
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Traditional)_Taiwan.950
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ETLUtils_1.3 ff_2.2-13 bit_1.1-12 bigmemory.sri_0.1.3
loaded via a namespace (and not attached):
[1] tools_3.2.1
[關鍵字]:
ETLUtils, RODBC
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 122.146.71.36
※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1441264078.A.C24.html
→
09/03 19:40, , 1F
09/03 19:40, 1F
→
09/06 14:17, , 2F
09/06 14:17, 2F
→
09/06 14:18, , 3F
09/06 14:18, 3F
R_Language 近期熱門文章
PTT數位生活區 即時熱門文章