Get exact spelling of locations at the same administrative level.

searchLocations(locations_to_search, admin_level)

Arguments

locations_to_search

vector or list of location (World Bank region, country, state/province, metropolitan area, county) name(s) at the same administrative level

admin_level

an integer representing an administrative level (World Bank regions = -1, countries = 0, states/provinces = 1, metropolitan areas = 1.5, counties = 2)

Value

a vector or list of location names

Examples

searchLocations(c("California", "Florida", "Texas"), admin_level=1)
#> [1] "California" "Florida"    "Texas"