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 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


kosukeimai/redist documentation built on March 28, 2024, 7:36 a.m.