找回密码
 立即注册
查看: 4289|回复: 0

readHTMLTable 报错

[复制链接]
发表于 2014-5-25 10:39:46 | 显示全部楼层 |阅读模式
运行 readHTMLTable 时报错
> library(XML)
> library(RCurl)
>  u = "http://en.wikipedia.org/wiki/List_of_countries_by_population"
>  tables = readHTMLTable(u)
Error in tb[["thead"]] : subscript out of bounds


版本信息如下:
> sessionInfo()
R version 3.0.3 (2014-03-06)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936   
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C                                                   
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936   
attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     
other attached packages:
[1] XML_3.98-1.1   RCurl_1.95-4.1 bitops_1.0-6  
loaded via a namespace (and not attached):
[1] arules_1.1-2          arulesNBMiner_0.1-2   arulesSequences_0.2-6
[4] colorspace_1.2-4      grid_3.0.3            lattice_0.20-27      
[7] Matrix_1.1-2          rJava_0.9-6           Rwordseg_0.2-1      
[10] tools_3.0.3         
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|R语言中文网

GMT+8, 2024-11-25 14:31 , Processed in 0.052941 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表