Skip to contents

Download TIGER shapes for tracts

Usage

tt_tracts(state, county, year = 2022)

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 12 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 × 13
#>    STATEFP COUNTYFP TRACTCE GEOID    NAME  NAMELSAD MTFCC FUNCSTAT  ALAND AWATER
#>  * <chr>   <chr>    <chr>   <chr>    <chr> <chr>    <chr> <chr>     <dbl>  <dbl>
#>  1 10      001      040204  1000104… 402.… Census … G5020 S        6.93e6 194346
#>  2 10      001      040206  1000104… 402.… Census … G5020 S        2.17e7 506259
#>  3 10      001      042203  1000104… 422.… Census … G5020 S        1.24e7 158242
#>  4 10      001      042204  1000104… 422.… Census … G5020 S        1.33e7 129007
#>  5 10      001      042205  1000104… 422.… Census … G5020 S        8.36e6      0
#>  6 10      001      042802  1000104… 428.… Census … G5020 S        5.89e7 542235
#>  7 10      001      042207  1000104… 422.… Census … G5020 S        1.03e7  24082
#>  8 10      001      041803  1000104… 418.… Census … G5020 S        1.76e7      0
#>  9 10      001      040205  1000104… 402.… Census … G5020 S        3.34e6      0
#> 10 10      001      042206  1000104… 422.… Census … G5020 S        1.03e7 207421
#> # ℹ 32 more rows
#> # ℹ 3 more variables: INTPTLAT <chr>, INTPTLON <chr>,
#> #   geometry <MULTIPOLYGON [°]>