Skip to contents

Download TIGER shapes for blocks

Usage

tt_blocks(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_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     GEOIDFQ20 NAME20 MTFCC20
#>  * <chr>     <chr>      <chr>     <chr>     <chr>       <chr>     <chr>  <chr>  
#>  1 10        001        041200    2024      1000104120… 1000000U… Block… G5040  
#>  2 10        001        043202    1034      1000104320… 1000000U… Block… G5040  
#>  3 10        001        042900    1033      1000104290… 1000000U… Block… G5040  
#>  4 10        001        043202    4032      1000104320… 1000000U… Block… G5040  
#>  5 10        001        043202    1020      1000104320… 1000000U… Block… G5040  
#>  6 10        001        043400    3041      1000104340… 1000000U… Block… G5040  
#>  7 10        001        043202    1014      1000104320… 1000000U… Block… G5040  
#>  8 10        001        041101    1006      1000104110… 1000000U… Block… G5040  
#>  9 10        001        042206    2013      1000104220… 1000000U… Block… G5040  
#> 10 10        001        043202    3002      1000104320… 1000000U… Block… G5040  
#> # ℹ 4,123 more rows
#> # ℹ 10 more variables: UR20 <chr>, UACE20 <chr>, FUNCSTAT20 <chr>,
#> #   ALAND20 <dbl>, AWATER20 <dbl>, INTPTLAT20 <chr>, INTPTLON20 <chr>,
#> #   HOUSING20 <dbl>, POP20 <dbl>, geometry <MULTIPOLYGON [°]>