Creates an adjacency list that is zero indexed with no skips

redist.adjacency(shp, plan)

Arguments

shp

A SpatialPolygonsDataFrame or sf object. Required.

plan

A numeric vector (if only one map) or matrix with one row