R-prog从xml中提取内容

时间:2016-01-15 20:22:42

标签: xml r data-cleaning

我在r中使用了以下代码来提取内容,但始终存在错误。有谁可以指出错误?

  

fileurl = “http://espn.go.com/nfl/team/_/name/bal/baltimore-ravens”   DOC = htmlTreeParse(fileurl,useInternal = TRUE)   得分= xpathSApply(文件, “//的Li [@类= '得分']”,xmlValue)

     

错误:得分中的意外']'= xpathSApply(doc = doc,path =“// li [@ class ='score']”,fun = xmlValue]“

请帮助..

0 个答案:

没有答案
相关问题