View source: R/get_acs-poststrat.R
get_acs_cvap | R Documentation |
Returns the Citizen Voting Age Population by Congressional District. A custom
call to get_acs_cces
. In the output, cvap_total
is the total CVAP of
all races, cvap_race
is the count of CVAP for the given race, and cvap_frac
is the fraction.
get_acs_cvap(
race = "white",
varlab_df = ccesMRPprep::acscodes_df,
year = 2018,
states = NULL,
dataset = "acs1"
)
race |
Race of interest. Either |
varlab_df |
a dataframe that appends the categories based on the varcode |
year |
The year of the ACS to get. Because of data availability limitations, this is capped to 2010-2018. |
states |
A vector of states to subset to. Gets passed onto the new |
dataset |
Which type of ACS to get. Defaults to |
Future versions will allow CVAP race fractions by geographies other than CD.
get_acs_cces
get_acs_cvap("white")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.