The USCensusStates_02 dataset provides a SFDF of US states to use in code examples. It is created by converting a US state borders shapefile to a simple features data frame with additional columns of data. The code for creating it demonstrates creation of a SFDF that is compatible with stateMap(). See the MazamaSpatialUtils package for the function convertUSCensusStates() that creates this SFDF.

This dataset was generated on 2022-11-007 by running:


library(MazamaSpatialUtils)

setSpatialDataDir("~/Data/Spatial_0.8")

MazamaSpatialUtils::convertUSCensusStates()

MazamaSpatialUtils::loadSpatialData("USCensusStates_02")

save(USCensusStates_02, file = "data/USCensusStates_02.rda")
USCensusStates_02

Format

A simple features data frame (SFDF) with 52 observations and 8 variables.