Skip to contents

Download TIGER shapes for blocks

Usage

tt_blocks(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_blocks(state = "DE", county = "001"))
#> Simple feature collection with 4133 features and 17 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: 4,133 × 18
#>    STATEFP20 COUNTYFP20 TRACTCE20 BLOCKCE20 GEOID20  NAME20 MTFCC20 UR20  UACE20
#>  * <chr>     <chr>      <chr>     <chr>     <chr>    <chr>  <chr>   <chr> <chr> 
#>  1 10        001        043202    1020      1000104… Block… G5040   R     NA    
#>  2 10        001        043202    1014      1000104… Block… G5040   R     NA    
#>  3 10        001        041101    1006      1000104… Block… G5040   U     24580 
#>  4 10        001        042206    2013      1000104… Block… G5040   U     24580 
#>  5 10        001        043202    1034      1000104… Block… G5040   R     NA    
#>  6 10        001        043202    4032      1000104… Block… G5040   R     NA    
#>  7 10        001        043400    3041      1000104… Block… G5040   R     NA    
#>  8 10        001        041200    2024      1000104… Block… G5040   U     24580 
#>  9 10        001        043202    3002      1000104… Block… G5040   R     NA    
#> 10 10        001        042900    1033      1000104… Block… G5040   R     NA    
#> # ℹ 4,123 more rows
#> # ℹ 9 more variables: UATYPE20 <chr>, FUNCSTAT20 <chr>, ALAND20 <dbl>,
#> #   AWATER20 <dbl>, INTPTLAT20 <chr>, INTPTLON20 <chr>, HOUSING20 <dbl>,
#> #   POP20 <dbl>, geometry <MULTIPOLYGON [°]>