inc_pairs | R Documentation |
Count the number of incumbents paired with at least one other incumbent.
inc_pairs(plans, shp, inc)
plans |
A |
shp |
A |
inc |
Unqouted name of logical column in |
vector of number of incumbents paired
data(nh)
data(nh_m)
# Use incumbent data:
fake_inc <- rep(FALSE, nrow(nh))
fake_inc[3:4] <- TRUE
# For a single plan:
inc_pairs(plans = nh$r_2020, shp = nh, inc = fake_inc)
# Or many plans:
inc_pairs(plans = nh_m[, 3:5], shp = nh, inc = fake_inc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.