pullback: Pull back plans to unmerged units

View source: R/plans_helpers.R

pullbackR Documentation

Pull back plans to unmerged units

Description

Merging map units through merge_by or dplyr::summarize changes the indexing of each unit. Use this function to take a set of redistricting plans from a redist algorithm and re-index them to be compatible with the original set of units.

Usage

pullback(plans, map = NULL)

Arguments

plans

a redist_plans object

map

optionally, a redist_map object, which will be used to set the new population vector

Value

a new, re-indexed, redist_plans object


redist documentation built on Aug. 8, 2025, 7:44 p.m.