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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -