开发者

reading a big xls file into R

开发者 https://www.devze.com 2023-03-30 17:15 出处:网络
I have an excel file with ~10000 rows and ~250 columns, currently I am using RODBC to do the importing:

I have an excel file with ~10000 rows and ~250 columns, currently I am using RODBC to do the importing:

channel <- odbcConnectExcel(xls.file="s:/demo.xls")
demo <- sqlFetch(channel,"Sheet_1")
odbcClose(channel)
开发者_JS百科

But this way is a bit slow (I need a minute or two to import them), and the excel is originally encrypted, I need to remove the password to work on it, which is something that I prefer not to, I wonder if there is any better way (i.e. import faster, and capable of importing encrypted excel files)

Thanks.


I recommend to try using the XLConnect package instead of RODBC.

http://cran.r-project.org/web/packages/XLConnect/index.html

0

精彩评论

暂无评论...
验证码 换一张
取 消