Learn R Programming

choroplethr (version 3.7.0)

get_congressional_district_demographics: Get a handful of demographic variables on US Congressional Districts from the US Census Bureau as a data.frame.

Description

The data comes from the American Community Survey (ACS). The variables are: total population, percent White not Hispanic, Percent Black or African American not Hispanic, percent Asian not Hispanic, percent Hispanic all races, per-capita income, median rent and median age.

Usage

get_congressional_district_demographics(year = 2018, survey = "acs5")

Arguments

year

The year the survey was published

survey

The survey. Either "acs5" or "acs1"