[R] Problem with readHTMLTable

Sven D sduve at hotmail.com
Sat May 26 16:17:19 CEST 2012


Hello All,

i was trying to simply run the readHTMLTable on the example published in the
package. And on a page I was working on. So running:

u = "http://en.wikipedia.org/wiki/List_of_countries_by_population"
tables = readHTMLTable(u)

returns the following error:

Error in tb[["thead"]] : subscript out of bounds


looking up this error on the web, didnt give me any hint. Is something wrong
with this function?


this is my sessioninfo:

> sessionInfo()
R version 2.14.1 (2011-12-22)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United
Kingdom.1252    LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C                            LC_TIME=English_United
Kingdom.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] XML_3.9-4.1                  RCurl_1.91-1.1              
bitops_1.0-4.1               PerformanceAnalytics_1.0.3.2
 [5] quantstrat_0.6.4             blotter_0.8.4               
FinancialInstrument_0.13.6   quantmod_0.3-17             
 [9] Defaults_1.1-1               TTR_0.21-0                   xts_0.8-2                   
zoo_1.7-6                   

loaded via a namespace (and not attached):
[1] grid_2.14.1    IBrokers_0.9-3 lattice_0.20-0 tools_2.14.1  

Many thanks 



Sven




--
View this message in context: http://r.789695.n4.nabble.com/Problem-with-readHTMLTable-tp4631439.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list