part_dvs {redistmetrics} | R Documentation |
Calculate Democratic Vote Share
Description
Calculate Democratic Vote Share
Usage
part_dvs(plans, shp, dvote, rvote)
Arguments
plans |
A |
shp |
A |
dvote |
Unqouted name of column in |
rvote |
Unqouted name of column in |
Value
A numeric vector. Can be shaped into a district-by-plan matrix.
Examples
data(nh)
data(nh_m)
# For a single plan:
part_dvs(plans = nh$r_2020, shp = nh, rvote = nrv, dvote = ndv)
# Or many plans:
part_dvs(plans = nh_m[, 3:5], shp = nh, rvote = nrv, dvote = ndv)
[Package redistmetrics version 1.0.7 Index]