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 andfixNonStandardreadUSsenate 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
subNonStandardNamesif(!fda::CRAN()){
USsenate <- readUSsenate()
}Run the code above in your browser using DataLab