View source: R/ei_descriptives.R
race_cand_cors | R Documentation |
Table of bivariate correlations
race_cand_cors(data, cand_cols, race_cols)
data |
A data.frame() object containing precinct-level turnout data by race and candidate |
cand_cols |
A character vector listing the column names for turnout for each candidate |
race_cols |
A character vector listing the column names for turnout by race |
a dataframe of correlation coefficients describing to correlation between the racial proportion of a precinct and the vote share of each candidate.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.