Prep Polsby Popper Perimeter Dataframe

redist.prep.polsbypopper(shp, planarize = 3857, perim_path, ncores = 1)

Arguments

shp

A SpatialPolygonsDataFrame or sf object. Required unless "EdgesRemoved" and "logSpanningTree" with adjacency provided.

planarize

a number, indicating the CRS to project the shapefile to if it is latitude-longitude based. Set to FALSE to avoid planarizing.

perim_path

A path to save an Rds

ncores

the number of cores to parallelize over

Value

A perimeter dataframe

Examples

data(fl25)
perim_df <- redistmetrics::prep_perims(shp = fl25)
#> Linking to GEOS 3.11.0, GDAL 3.5.3, PROJ 9.1.0; sf_use_s2() is TRUE