A simple features data set containing the 2010 Ward boundaries, which
are used as districts for Alderpersons who serve as elected representatives.
The OBJECTID
and AREA
columns are included to simulate "real"
data that may have superfluous or unclear columns.
data(ar_stl_wards)
A data frame with 28 rows and 4 variables:
Artifact from ESRI data creation
Ward number
area of each ward
simple features geometry
City of St. Louis
str(ar_stl_wards)
#> Classes ‘sf’ and 'data.frame': 28 obs. of 4 variables:
#> $ OBJECTID: num 1 2 3 4 5 6 7 8 9 10 ...
#> $ WARD : int 1 2 3 4 5 6 7 8 9 10 ...
#> $ AREA : num 4.61e+07 2.68e+08 6.63e+07 5.32e+07 6.05e+07 ...
#> $ geometry:sfc_POLYGON of length 28; first list element: List of 1
#> ..$ : num [1:171, 1:2] 272763 272797 272869 272947 273106 ...
#> ..- 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] "OBJECTID" "WARD" "AREA"
head(ar_stl_wards)
#> Simple feature collection with 6 features and 3 fields
#> Geometry type: POLYGON
#> Dimension: XY
#> Bounding box: xmin: 270216.3 ymin: 306873.1 xmax: 278974.9 ymax: 326430.3
#> Projected CRS: NAD_1983_HARN_StatePlane_Missouri_East_FIPS_2401
#> OBJECTID WARD AREA geometry
#> 1 1 1 46138761 POLYGON ((272762.8 317484.8...
#> 2 2 2 267817711 POLYGON ((275044.1 320169.6...
#> 3 3 3 66291644 POLYGON ((275469.4 315093.9...
#> 4 4 4 53210707 POLYGON ((272072.6 315153.2...
#> 5 5 5 60462396 POLYGON ((277328.1 312562.2...
#> 6 6 6 64337271 POLYGON ((274902.5 310971.6...
summary(ar_stl_wards$AREA)
#> Min. 1st Qu. Median Mean 3rd Qu. Max.
#> 31401005 45229000 57746517 65494301 68302243 267817711