powered by
Pick One Plan from Many Plans
pick_a_plan( plans, map, counties = NULL, comp = NULL, maximize_comp = TRUE, cut_point = 0.3 )
a redist_plans object
a redist_map object
A column in map with county names. Defaults to NULL and will assume each row in map is its own county if left NULL
A column in plans with compactness. Defaults to NULL and will calculate FracKept if left NULL
Should comp be maximized? Defaults to TRUE.
portion of plans to keep at each step
An integer vector with a single plan
# NOT RUN { data(iowa) map <- redist_map(iowa, existing_plan = cd_2010, pop_tol = 0.01, total_pop = pop) sims <- redist_smc(map, 100) pick_a_plan(sims, map) # }
Run the code above in your browser using DataLab