Skip to contents

Download TIGER shapes for congressional districts

Usage

tt_congressional_districts(state, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

year

Integer year. Required. 2000 and 2010-2022 are currently supported.

Value

sf data.frame

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 "119".
#> Warning: error 1 in extracting from zip file
#> Error : Cannot open "/tmp/RtmpApF2VF/tl_2024_45_cd119/tl_2024_45_cd119.shp"; The file doesn't seem to exist.