readUSsenate(url.=
"http://en.wikipedia.org/wiki/List_of_current_United_States_Senators",
stateAbbreviations=Ecdat::USstateAbbreviations,
fixNonStandard=subNonStandardNames, ...) NOTE: On April 26, 2013 the obvious naive use of
readHTMLTable worked with the Wikipedia article
on
data.frame giving names and alternative codes for US
states and territories. This must have a column named "Name" giving
the names of all 50 states as they appear on the url and
fixNonStandardreadUSsenate returns a data.frame with the following
columns:Senate <- readHTMLTable(url) 2. Use camelParse to remove duplication in Name.
3. Look for and fix surname and givenName with
nonstandard characters using fixNonStandard.
getURL
readHTMLTable
camelParse to remove duplication in Name
readUShouse
UShouse.senate
parseName
subNonStandardNames