MazamaSpatialUtils (version 0.7.6)

convertStateLegislativeDistricts: Convert US state legislative districts shapefile

Description

Create a SpatialPolygonsDataFrame for US State Legislative Districts of a specified state

Usage

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

Value

Name of the dataset being created.

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.

simplify

Logical specifying whether to create "_05", _02" and "_01" versions of the file that are simplified to 5%, 2% and 1%.

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/geographies/mapping-files/time-series/geo/cartographic-boundary.html

See Also

setSpatialDataDir