Returns true if the given ZIP code is also a ZIP code tabulation area (ZCTA)

is_zcta(zip_code)

Arguments

zip_code

A 5-digit U.S. ZIP code

Value

Boolean TRUE or FALSE based upon whether provided ZIP code is a ZCTA by testing whether it exists in the U.S. Census crosswalk data

Examples

is_zcta("90210")
#> [1] TRUE
is_zcta("99999")
#> [1] FALSE
is_zcta("07762")
#> [1] TRUE