MazamaSpatialUtils (version 0.6.4)

convertStateLegislativeDistricts: Convert US dtate legislative districts shapefile

Description

a SpatialPolygonsDataFrame for US State Legislative Districts

Usage

convertStateLegislativeDistricts(stateCode, house = "Upper",
  nameOnly = FALSE)

Arguments

stateCode

ISO 3166-2 alpha-2 state code.

house

Character specifying either "Upper" or "Lower" house.

nameOnly

Logical specifying whether to only return the name without creating the file.

Value

Name of the dataset being created.

Details

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().

References

https://www.census.gov/geo/maps-data/data/cbf/cbf_sld.html

See Also

setSpatialDataDir