a SpatialPolygonsDataFrame for US State Legislative Districts
convertStateLegislativeDistricts(stateCode, house = "Upper",
nameOnly = FALSE)
ISO 3166-2 alpha-2 state code.
Character specifying either "Upper" or "Lower" house.
Logical specifying whether to only return the name without creating the file.
Name of the dataset being created.
A US State Legislative District shapefile is downloaded and converted
to a SpatialPolygonsDataFrame with additional columns of data. The resulting
file will be created in the spatial data directory which is set with
setSpatialDataDir()
.
setSpatialDataDir