1
我相信XML
有一個解決方案包。但是,哪個功能是正確的?如何計算HTML頁面中的表格數量?
例如: http://en.wikipedia.org/wiki/List_of_deaths_on_eight-thousanders
我相信XML
有一個解決方案包。但是,哪個功能是正確的?如何計算HTML頁面中的表格數量?
例如: http://en.wikipedia.org/wiki/List_of_deaths_on_eight-thousanders
我覺得有20桌。使用readHTMLTable
您可以提取所有表:
url <- "http://en.wikipedia.org/wiki/List_of_deaths_on_eight-thousanders"
library(XML)
ll <- readHTMLTable(url)
length(ll)
[1] 20