Skip to contents

Download TIGER shapes for counties

Usage

tt_counties(state, year = 2022)

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_counties(state = "DE")) # downloads slow on CRAN
#> Simple feature collection with 3 features and 17 fields
#> Geometry type: MULTIPOLYGON
#> Dimension:     XY
#> Bounding box:  xmin: -75.78902 ymin: 38.45113 xmax: -74.98416 ymax: 39.83952
#> Geodetic CRS:  NAD83
#> # A tibble: 3 × 18
#>   STATEFP COUNTYFP COUNTYNS GEOID NAME       NAMELSAD  LSAD  CLASSFP MTFCC CSAFP
#> * <chr>   <chr>    <chr>    <chr> <chr>      <chr>     <chr> <chr>   <chr> <chr>
#> 1 10      003      00217270 10003 New Castle New Cast… 06    H1      G4020 NA   
#> 2 10      005      00217269 10005 Sussex     Sussex C… 06    H1      G4020 NA   
#> 3 10      001      00217271 10001 Kent       Kent Cou… 06    H1      G4020 NA   
#> # ℹ 8 more variables: CBSAFP <chr>, METDIVFP <chr>, FUNCSTAT <chr>,
#> #   ALAND <dbl>, AWATER <dbl>, INTPTLAT <chr>, INTPTLON <chr>,
#> #   geometry <MULTIPOLYGON [°]>