0
的情况我有过R如何提取满足R中
download.file("http://stats.espncricinfo.com/ci/engine/records/team/match_results_year.html?class=2;id=6;type=team",
"dataDictionary.html")
docHtml = htmlTreeParse("dataDictionary.html", useInternal = TRUE) # to Download the page source
links <- xpathSApply(docHtml,path = "//a", xmlGetAttr, "href")
现在我需要提取具有类似"/ci/engine/records/team/match_results.html?class=2;id= *"
数据中提取的页面源信息的超链接。这里的*
在某种意义上满足这个条件,那些数据必须存储在另一个变量中。任何帮助?