Beginner web scraper. I've loaded packages: XML, RCurl, bitops and stringr. Starting by scraping links to cvs files. here's the code
library(XML) library(bitops) library(stringr) library(RCurl) # url = "http://elections.state.md.us/elections/2012/election_data/index.html" links = getHTMLLinks(doc = url)
I get the following message:
Error: could not find function "getHTMLLinks"
When I check the XML package command list, I notice it does not contain the getHTMLLink()
command. Has this command been replaced (removed). I'm working an example from textbook, so I expect the commands to exist. Advice appreciated. ps: code section was indented 4-spaces as instructed.
No comments:
Post a Comment