Package: geomander 2.5.3

Christopher T. Kenny

geomander: Geographic Tools for Studying Gerrymandering

A compilation of tools to complete common tasks for studying gerrymandering. This focuses on the geographic tool side of common problems, such as linking different levels of spatial units or estimating how to break up units. Functions exist for creating redistricting-focused data for the US.

Authors:Christopher T. Kenny [aut, cre], Cory McCartan [ctb]

geomander_2.5.3.tar.gz
geomander_2.5.3.zip(r-4.7)geomander_2.5.3.zip(r-4.6)geomander_2.5.3.zip(r-4.5)
geomander_2.5.3.tgz(r-4.6-x86_64)geomander_2.5.3.tgz(r-4.6-arm64)geomander_2.5.3.tgz(r-4.5-x86_64)geomander_2.5.3.tgz(r-4.5-arm64)
geomander_2.5.3.tar.gz(r-4.7-arm64)geomander_2.5.3.tar.gz(r-4.7-x86_64)geomander_2.5.3.tar.gz(r-4.6-arm64)geomander_2.5.3.tar.gz(r-4.6-x86_64)
geomander_2.5.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
geomander/json (API)
NEWS

# Install 'geomander' in R:
install.packages('geomander', repos = c('https://alarm-redist.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/christopherkenny/geomander/issues

Pkgdown/docs site:https://christophertkenny.com

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

cpp

8.80 score 15 stars 2 packages 316 scripts 329 downloads 53 exports 72 dependencies

Last updated from:566f874f2a. Checks:13 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK217
linux-devel-x86_64OK207
source / vignettesOK259
linux-release-arm64OK197
linux-release-x86_64OK202
macos-release-arm64OK160
macos-release-x86_64OK265
macos-oldrel-arm64OK120
macos-oldrel-x86_64OK275
windows-develOK207
windows-releaseOK181
windows-oldrelOK176
wasm-releaseOK158

Exports:add_edgeadjacencyalarm_statesbaf_to_vtdblock2precblock2prec_by_countyccmcctcheck_contiguitycheck_polygon_contiguityclean_vestcompare_adjacenciescount_connectionscreate_block_tablecreate_tract_tabledra2restimate_downestimate_upgeo_estimate_downgeo_estimate_upgeo_filtergeo_matchgeo_plotgeo_plot_groupgeo_sortgeo_trimgeos_centerishgeos_circle_centerget_alarmget_draget_hedaget_lewisget_rpvnearmeget_vestglobal_gearysglobal_moransgstar_iheda_stateslocal_gearyslocal_moransr2draregionalizeseam_adjseam_geomseam_ripseam_sewsplit_precinctst_centerishst_circle_centersubtract_edgesuggest_component_connectionsuggest_neighborsvest_states

Dependencies:askpassbackportsbafbitbit64cachemcensablecensusapicheckmateclassclassIntclicliprcpp11crayoncurldataverseDBIdplyre1071farverfastmapfsgenericsgeosggplot2gluegtablehmshttrisobandjsonliteKernSmoothlabelinglibgeoslifecyclemagrittrMASSmemoisemimeopensslpillarpkgconfigprettyunitsprogressproxypurrrR6RColorBrewerRcppreadrrlangs2S7scalessfstringistringrsystibbletidyrtidyselecttinytigertzdbunitsutf8vctrsviridisLitevroomwithrwkxml2

Merging Election Data

Rendered fromMerging_Election_Data.Rmdusingknitr::rmarkdownon May 31 2026.

Last update: 2025-09-01
Started: 2021-02-13

Redistricting School Districts

Rendered fromRedistricting_School_Districts.Rmdusingknitr::rmarkdownon May 31 2026.

Last update: 2024-05-28
Started: 2021-02-13

Readme and manuals

Help Manual

Help pageTopics
Geographic Tools for Studying Gerrymanderinggeomander-package geomander
Add Edges to an Adjacency Listadd_edge
Build an Adjacency Listadjacency
List Available States from ALARM Dataalarm_states
Estimate Plans from a Block Assignment File to Voting Districtsbaf_to_vtd
Aggregate a Block Table by Matchesblock2prec
Aggregate a Block Table by Matches Within Countyblock2prec_by_county
Check Contiguity by Groupccm cct check_contiguity
Check Polygon Contiguitycheck_polygon_contiguity
Checkerboardcheckerboard
Checkerboard Adjacencycheckerboard_adj
Clean VEST Column Namesclean_vest
Compare Adjacency Listscompare_adjacencies
Count How Often Pairs of Units Share a Districtcount_connections
Create a Census Block-Level Tablecreate_block_table
Create an ACS Tract-Level Tablecreate_tract_table
Convert DRA Export Data to an R Spatial Objectdra2r
Estimate Values Down Using Precomputed Matchesestimate_down
Aggregate Values Up Using Precomputed Matchesestimate_up
Estimate Values Down to a Finer Geographygeo_estimate_down
Aggregate Values Up to a Larger Geographygeo_estimate_up
Filter to Intersecting Piecesgeo_filter
Match Features Across Geographic Layersgeo_match
Plot an 'sf' Object with Row Numbersgeo_plot
Plot Groups with Connected Components Coloredgeo_plot_group
Sort Features by Northwest-to-Southeast Ordergeo_sort
Trim Away Small Piecesgeo_trim
Get the kind of center of each shapegeos_centerish
Get the centroid of the maximum inscribed circlegeos_circle_center
Get an ALARM Datasetget_alarm
Get a Dave's Redistricting App Datasetget_dra
Get a Harvard Election Data Archive ("HEDA") Datasetget_heda
Get Historical United States Congressional District Shapefilesget_lewis
Get the RPV Near Me Datasetget_rpvnearme
Get a Voting and Election Science Team ("VEST") Datasetget_vest
Compute Global Geary's Cglobal_gearys
Compute Global Moran's Iglobal_morans
Compute Standardized Getis-Ord G*igstar_i
List Available HEDA Statesheda_states
Compute Local Geary's Clocal_gearys
Compute Local Moran's Ilocal_morans
nrcsdnrcsd
orangeorange
precinctsprecincts
Convert an R Plan to DRA Block Assignment Formatr2dra
Estimate Regions Separated by Geographic Featuresregionalize
rocklandrockland
Filter Adjacency to the Edges Along a Seamseam_adj
Filter Shapes to Units Along a Seamseam_geom
Remove Edges Across an Administrative Boundaryseam_rip
Suggest Edges to Sew a Seamseam_sew
Split a Precinctsplit_precinct
Get the kind of center of each shapest_centerish
Get the Center of the Maximum Inscribed Circlest_circle_center
Remove Edges from an Adjacency Listsubtract_edge
Suggest Connections for Disconnected Groupssuggest_component_connection
Suggest Neighbors for Lonely Precinctssuggest_neighbors
townstowns
va_blocksva_blocks
va_vtdva_vtd
va18subva18sub
List Available VEST Statesvest_states