Skip to contents

Download TIGER shapes for block groups

Usage

tt_block_groups(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_block_groups(state = "DE", county = "001")) # downloads slow on CRAN
#> Simple feature collection with 102 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: 102 × 13
#>    STATEFP COUNTYFP TRACTCE BLKGRPCE GEOID NAMELSAD MTFCC FUNCSTAT  ALAND AWATER
#>  * <chr>   <chr>    <chr>   <chr>    <chr> <chr>    <chr> <chr>     <dbl>  <dbl>
#>  1 10      001      040206  1        1000… Block G… G5030 S        2.17e7 506259
#>  2 10      001      040100  4        1000… Block G… G5030 S        2.58e7      0
#>  3 10      001      040204  2        1000… Block G… G5030 S        1.93e6      0
#>  4 10      001      040100  1        1000… Block G… G5030 S        4.15e7      0
#>  5 10      001      040201  3        1000… Block G… G5030 S        1.06e6      0
#>  6 10      001      040203  2        1000… Block G… G5030 S        2.11e6      0
#>  7 10      001      040203  3        1000… Block G… G5030 S        2.44e6      0
#>  8 10      001      040204  1        1000… Block G… G5030 S        2.07e6 194346
#>  9 10      001      041701  3        1000… Block G… G5030 S        1.70e6      0
#> 10 10      001      042203  3        1000… Block G… G5030 S        4.33e6  88819
#> # ℹ 92 more rows
#> # ℹ 3 more variables: INTPTLAT <chr>, INTPTLON <chr>,
#> #   geometry <MULTIPOLYGON [°]>