Calculate Fraction Kept Compactness
comp_frac_kept(plans, shp, adj)
redist_plans object or plans_matrix where each row indicates a district assignment and each column is a plan
redist_map object or tibble with sf geometry column
zero-indexed adjacency list. Not required if redist_map
supplied to shp
.
numeric vector
Matthew P. Dube and Jesse Tyler Clark. 2016. Beyond the circle: Measuring district compactness using graph theory. In Annual Meeting of the Northeastern Political Science Association