R-prog extraction of contents from xml -
i have used following code in r extract contents there error. point out mistake?
fileurl="http://espn.go.com/nfl/team/_/name/bal/baltimore-ravens" doc=htmltreeparse(fileurl,useinternal=true) score=xpathsapply(doc,"//li[@class='score']",xmlvalue)
error:unexpected']' in scores=xpathsapply(doc=doc,path="//li[@class='score']",fun=xmlvalue]"
please help..
Comments
Post a Comment