Returns 2019 census estimate of state or county population.

get_pop(region)

Arguments

region

A string with the state name, or the FIPS code

Value

State/county population as a numeric, or an error

Examples

get_pop('Connecticut')
#> [1] 3565287
get_pop('09009')
#> [1] 854757