Skip to contents

Download TIGER shapes for Zip Code Tabulation Areas

Usage

tt_zcta(year = 2022)

Arguments

year

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

Value

sf data.frame

Examples

 # takes > 5 seconds
# Wrapped in try due to false positive 304 errors
try(tt_zcta()) # downloads slow on CRAN
#> Simple feature collection with 33791 features and 9 fields
#> Geometry type: MULTIPOLYGON
#> Dimension:     XY
#> Bounding box:  xmin: -176.6967 ymin: -14.37378 xmax: 145.8305 ymax: 71.34132
#> Geodetic CRS:  NAD83
#> # A tibble: 33,791 × 10
#>    ZCTA5CE20 GEOID20 CLASSFP20 MTFCC20 FUNCSTAT20   ALAND20 AWATER20 INTPTLAT20 
#>    <chr>     <chr>   <chr>     <chr>   <chr>          <dbl>    <dbl> <chr>      
#>  1 47236     47236   B5        G6350   S            1029063        0 +39.1517426
#>  2 47870     47870   B5        G6350   S               8830        0 +39.3701518
#>  3 47851     47851   B5        G6350   S              53326        0 +39.5735839
#>  4 47337     47337   B5        G6350   S             303089        0 +39.8027537
#>  5 47435     47435   B5        G6350   S              13302        0 +39.2657557
#>  6 47514     47514   B5        G6350   S           18245786        0 +38.1486002
#>  7 46045     46045   B5        G6350   S             195341        0 +40.2896097
#>  8 46206     46206   B5        G6350   S              42569        0 +39.7602668
#>  9 46704     46704   B5        G6350   S             173725        0 +41.1036603
#> 10 47585     47585   B5        G6350   S          103975570  2125604 +38.2667450
#> # ℹ 33,781 more rows
#> # ℹ 2 more variables: INTPTLON20 <chr>, geometry <MULTIPOLYGON [°]>