Learn R Programming

pointdexter (version 0.1.1)

census_tracts_sf: A simple feature of the 2010 Chicago census tracts

Description

A simple feature containing the 2010 Chicago census tracts that can only be used with the sf package.

Usage

data("census_tracts_sf")

Arguments

Format

A simple feature (which is either data.frame or tibble) with a geometry list-column with 801 observations on the following 10 variables:

statefp10

17, a 2-digit code from the American National Standards Institute/Federal Information Processing Standards (ANSI/FIPS) that represents the State of Illinois

name10

un-padded 3-to-6 digit (excluding the decimal point) name of the census tract

commarea_n

numeric name of the community area that the census tract lays within, which can be used as a crosswalk to identify particular census tracts in a given community area

namelsad10

character name of the census tract

commarea

numeric name of the community area that the census tract lays within, which can be used as a crosswalk to identify particular census tracts in a given community area

geoid10

11-digit code that unique identifies the census tract as a concatenation of statefp10 (2-digits) + countyfp10 (3-digits) + tractce (6-digits)

notes

not every census tract lays exactly within a community area which is where the City of Chicago made notes regarding instances of overlap, low population, or a census tract falling outside the City's boundaries

tractce10

padded 6-digit name of the census tract

countyfp10

3-digit county name for Cook County

geometry

a list that contains the dimensions and the simple feature geometry type

Details

The following is sf installation advice from Matt Herman:

Depending on your operating system and available libraries, sf can be tricky to install the first time. The sf website is a good place to start if you're having trouble. If you're using macOS, this is a good guide to installing the required libraries.

References

sf documentation has helpful information on how to work with sf objects.

See Also

  • ?pointdexter::census_tracts_spdf

Examples

Run this code
# NOT RUN {
# load necessary packages ----
library(sf)

# load necessary data ----
data("census_tracts_sf")

# plot Chicago 2010 census tracts ----
par(mar = c(0, 0, 1, 0))

plot(census_tracts_sf$geometry
     , main = "2010 City of Chicago census tracts"
     , col = "gray85"
     , border = "dodgerblue4")
     
# }

Run the code above in your browser using DataLab