This function is essentially a wrapper around
Local.getCities().
Usage
getAllCities()
Arguments
Value
A data frame with a row for each city and columns with the
following variables describing the city:
cities.city*.localId,
cities.city*.name,
cities.city*.url.
References
http://api.votesmart.org/docs/Local.html
Use
State.getStateIDs() to get a list of state IDs.
# First, make sure your personal PVS API key is saved as character string in the pvs.key variable:pvs.key <- "yourkey"# get a list of all citiescities <- getAllCities()
head(cities)