Get all congressional districts for a given ZIP code

get_cd(zip_code)

Arguments

zip_code

A U.S. ZIP code

Value

a named list of two-digit state code and two digit district code

Examples

get_cd("08731")
#> $state_fips
#> [1] "NJ"
#> 
#> $district
#> [1] "03"
#> 
get_cd("90210")
#> $state_fips
#> [1] "CA"
#> 
#> $district
#> [1] "28" "30" "33"
#>