我在網上再殺在R.我做了下面的例子,但沒有得到的值,而不是越來越具有零個元素在R.空單使用xpathSApply是輸出而不是值
library(XML)
url<-"http://scholar.google.com/citations?user=HI-I6C0AAAAJ"
parsedhtml<-htmlTreeParse(url,useInternalNodes=T)
xpathSApply(parsedhtml,"//td[@id='col-citedby']",xmlValue)
列表()中的問題
我在計算以下代碼後得到list()
使用'RCurl'和'getURL()',然後使用'grepl()'來測試那個屬性是否存在返回false。你確信它在那裏嗎?我可能做錯了? – stanekam