我在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]“
请帮助..