Learn R Programming

redist (version 4.1.1)

persily: Local Plan Optimization

Description

Searches the local area for a combination of minimizing county splits, compactness, population parity, and keeping close to the original plan

Usage

persily(plan, map, counties = NULL)

Value

a redist_plans object with one plan

Arguments

plan

a single plan to optimize from

map

a redist map object

counties

Required

Examples

Run this code
# \donttest{
data(iowa)
map <- redist_map(iowa, existing_plan = cd_2010, pop_tol = 0.01, total_pop = pop)
plan <- get_plans_matrix(redist_smc(map, 1))[, 2]
local <- persily(plan = plan, map = map, counties = region)
# }

Run the code above in your browser using DataLab