MazamaSpatialUtils (version 0.6.4)

convertUSCensusStates: Convert US Census State Shapefile

Description

Returns a SpatialPolygonsDataFrame for US States

Usage

convertUSCensusStates(nameOnly = FALSE)

Arguments

nameOnly

logical specifying whether to only return the name without creating the file

Value

Name of the dataset being created.

Details

A US state 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_state.html

See Also

setSpatialDataDir