redist.district.splits: Counts the Number of Counties within a District

View source: R/deprecations.R

redist.district.splitsR Documentation

Counts the Number of Counties within a District

Description

Counts the total number of counties that are found within a district. This does not subtract out the number of counties that are found completely within a district.

Usage

redist.district.splits(plans, counties)

Arguments

plans

A numeric vector (if only one map) or matrix with one row for each precinct and one column for each map. Required.

counties

A vector of county names or county ids.

Value

integer matrix where each district is a

Examples

data(iowa)
ia <- redist_map(iowa, existing_plan = cd_2010, total_pop = pop, pop_tol = 0.01)
plans <- redist_smc(ia, 50, silent = TRUE)
#old redist.district.splits(plans, ia$region)
splits_count(plans, ia, region)

redist documentation built on June 24, 2024, 9:10 a.m.