readUSsenate(url.=
"http://en.wikipedia.org/wiki/List_of_current_United_States_Senators",
stateAbbreviations=Ecdat::USstateAbbreviations,
fixNonStandard=subNonStandardNames, ...)
readHTMLTable
worked with the Wikipedia article
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
andfixNonStandard
readUSsenate
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
if(!fda::CRAN()){
USsenate <- readUSsenate()
}
Run the code above in your browser using DataLab