View source: R/ei_preprocessing.R
sum_over_cols | R Documentation |
Simple wrapper of rowSums for checking row sums of race, candidate columns
sum_over_cols(data, cols)
data |
A data.frame() object containing precinct-level turnout data by race and candidate |
cols |
A set of columns to sum over. Typically, enter cand_cols or race_cols here. |
A vector of row-wise sums across the column vector entered as argument.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.