A simple features data set containing the geometry and associated attributes for the 2013-2017 American Community Survey estimates for median household income and the percentage of white residents in St. Louis. This version of the sample data are stored as polygon data.

data(stl_race_income)

Format

A data frame with 106 rows and 4 variables:

GEOID

full GEOID string

pctWhite

Percent of white residents per tract

medInc

Median household income of tract

geometry

simple features geometry

Source

tidycensus package

Examples

str(stl_race_income)
#> Classes ‘sf’ and 'data.frame':	106 obs. of  4 variables:
#>  $ GEOID   : chr  "29510102300" "29510102400" "29510104500" "29510106100" ...
#>  $ pctWhite: num  82.93 90.12 74.72 1.75 2.38 ...
#>  $ medInc  : num  51650 45375 54286 18895 36130 ...
#>  $ geometry:sfc_POLYGON of length 106; first list element: List of 1
#>   ..$ : num [1:137, 1:2] -90.3 -90.3 -90.3 -90.3 -90.3 ...
#>   ..- attr(*, "class")= chr [1:3] "XY" "POLYGON" "sfg"
#>  - attr(*, "sf_column")= chr "geometry"
#>  - attr(*, "agr")= Factor w/ 3 levels "constant","aggregate",..: NA NA NA
#>   ..- attr(*, "names")= chr [1:3] "GEOID" "pctWhite" "medInc"
head(stl_race_income)
#> Simple feature collection with 6 features and 3 fields
#> Geometry type: POLYGON
#> Dimension:     XY
#> Bounding box:  xmin: -90.29702 ymin: 38.55542 xmax: -90.2645 ymax: 38.67565
#> Geodetic CRS:  NAD83
#>         GEOID  pctWhite medInc                       geometry
#> 1 29510102300 82.925682  51650 POLYGON ((-90.29702 38.5623...
#> 2 29510102400 90.116046  45375 POLYGON ((-90.28452 38.5740...
#> 3 29510104500 74.723618  54286 POLYGON ((-90.29432 38.6209...
#> 4 29510106100  1.752464  18895 POLYGON ((-90.29005 38.6705...
#> 5 29510105500  2.376729  36130 POLYGON ((-90.28601 38.6589...
#> 6 29510105200 36.833277  60938 POLYGON ((-90.29462 38.6485...
summary(stl_race_income$medInc)
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#>   10545   23474   34688   37140   51379   74425