Download TIGER shapes for congressional districts
Source:R/congressional_districts.R
tt_congressional_districts.Rd
Download TIGER shapes for congressional districts
Arguments
- state
FIPS, postal codes, or full names of states.
- year
Integer year. Required. 2000 and 2010-2022 are currently supported.
Examples
# takes > 5 seconds
# Wrapped in try due to false positive 304 errors
try(tt_congressional_districts()) # downloads slow on CRAN
#> Downloading congressional districts for Congress "116".
#> Simple feature collection with 444 features and 12 fields
#> Geometry type: MULTIPOLYGON
#> Dimension: XY
#> Bounding box: xmin: -179.2311 ymin: -14.60181 xmax: 179.8597 ymax: 71.43979
#> Geodetic CRS: NAD83
#> # A tibble: 444 × 13
#> STATEFP CD116FP GEOID NAMELSAD LSAD CDSESSN MTFCC FUNCSTAT ALAND AWATER
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <dbl> <dbl>
#> 1 27 07 2707 Congressi… C2 116 G5200 N 8.66e10 5.05e 9
#> 2 27 02 2702 Congressi… C2 116 G5200 N 6.31e 9 2.42e 8
#> 3 27 06 2706 Congressi… C2 116 G5200 N 7.46e 9 4.09e 8
#> 4 27 08 2708 Congressi… C2 116 G5200 N 7.23e10 1.25e10
#> 5 17 01 1701 Congressi… C2 116 G5200 N 6.69e 8 2.07e 6
#> 6 17 18 1718 Congressi… C2 116 G5200 N 2.72e10 3.83e 8
#> 7 17 07 1707 Congressi… C2 116 G5200 N 1.61e 8 5.34e 6
#> 8 17 02 1702 Congressi… C2 116 G5200 N 2.80e 9 2.54e 7
#> 9 31 01 3101 Congressi… C2 116 G5200 N 2.30e10 2.53e 8
#> 10 06 36 0636 Congressi… C2 116 G5200 N 1.53e10 1.95e 8
#> # ℹ 434 more rows
#> # ℹ 3 more variables: INTPTLAT <chr>, INTPTLON <chr>,
#> # geometry <MULTIPOLYGON [°]>