Skip to contents

Download TIGER shapes for tracts

Usage

tt_tracts(state, county, year = 2024)

Arguments

state

FIPS, postal codes, or full names of states.

county

FIPS codes or full names of counties. Optional.

year

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

Value

sf data.frame

Examples

# Wrapped in try due to false positive 304 errors
try(tt_tracts(state = "DE", county = "001")) # downloads slow on CRAN
#> Simple feature collection with 42 features and 13 fields
#> Geometry type: MULTIPOLYGON
#> Dimension:     XY
#> Bounding box:  xmin: -75.76007 ymin: 38.82985 xmax: -75.13846 ymax: 39.38756
#> Geodetic CRS:  NAD83
#> # A tibble: 42 × 14
#>    STATEFP COUNTYFP TRACTCE GEOID   GEOIDFQ NAME  NAMELSAD MTFCC FUNCSTAT  ALAND
#>  * <chr>   <chr>    <chr>   <chr>   <chr>   <chr> <chr>    <chr> <chr>     <dbl>
#>  1 10      001      040204  100010… 140000… 402.… Census … G5020 S        6.93e6
#>  2 10      001      040206  100010… 140000… 402.… Census … G5020 S        2.17e7
#>  3 10      001      042203  100010… 140000… 422.… Census … G5020 S        1.24e7
#>  4 10      001      042204  100010… 140000… 422.… Census … G5020 S        1.33e7
#>  5 10      001      042205  100010… 140000… 422.… Census … G5020 S        8.36e6
#>  6 10      001      042802  100010… 140000… 428.… Census … G5020 S        5.89e7
#>  7 10      001      042207  100010… 140000… 422.… Census … G5020 S        1.03e7
#>  8 10      001      041803  100010… 140000… 418.… Census … G5020 S        1.76e7
#>  9 10      001      040205  100010… 140000… 402.… Census … G5020 S        3.34e6
#> 10 10      001      042206  100010… 140000… 422.… Census … G5020 S        1.03e7
#> # ℹ 32 more rows
#> # ℹ 4 more variables: AWATER <dbl>, INTPTLAT <chr>, INTPTLON <chr>,
#> #   geometry <MULTIPOLYGON [°]>