Package: geomander 2.4.0

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.4.0.tar.gz
geomander_2.4.0.zip(r-4.5)geomander_2.4.0.zip(r-4.4)geomander_2.4.0.zip(r-4.3)
geomander_2.4.0.tgz(r-4.4-arm64)geomander_2.4.0.tgz(r-4.4-x86_64)geomander_2.4.0.tgz(r-4.3-arm64)geomander_2.4.0.tgz(r-4.3-x86_64)
geomander_2.4.0.tar.gz(r-4.5-noble)geomander_2.4.0.tar.gz(r-4.4-noble)
geomander_2.4.0.tgz(r-4.4-emscripten)geomander_2.4.0.tgz(r-4.3-emscripten)
geomander.pdf |geomander.html
geomander/json (API)
NEWS

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

Peer review:

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

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

On CRAN:

53 exports 13 stars 2.40 score 78 dependencies 1 dependents 343 downloads

Last updated 26 days agofrom:0b876c1c55

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

Merging Election Data

Rendered fromMerging_Election_Data.Rmdusingknitr::rmarkdownon Jun 30 2024.

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

Redistricting School Districts

Rendered fromRedistricting_School_Districts.Rmdusingknitr::rmarkdownon Jun 30 2024.

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 Adjacency Listadjacency
List Available States from ALARM Dataalarm_states
Estimate Plans from a Block Assignment File to Voting Districtsbaf_to_vtd
Aggregate Block Table by Matchesblock2prec
Aggregate Block Table by Matches and Countyblock2prec_by_county
Check Contiguity by Groupccm cct check_contiguity
Check Polygon Contiguitycheck_polygon_contiguity
Checkerboardcheckerboard
Checkerboard Adjacencycheckerboard_adj
Clean VEST Namesclean_vest
Compare Adjacency Listscompare_adjacencies
Count Times Precincts are Connectedcount_connections
Create Block Level Datacreate_block_table
Create Tract Level Datacreate_tract_table
DRA to Rdra2r
Estimate Down Levelsestimate_down
Estimate Up Levelsestimate_up
Estimate Down Geography Levelsgeo_estimate_down
Estimate Up Geography Levelsgeo_estimate_up
Filter to Intersecting Piecesgeo_filter
Match Across Geographic Layersgeo_match
Plots a Shape with Row Numbers as Textgeo_plot
Create Plots of Shapes by Group with Connected Components Coloredgeo_plot_group
Sort Precinctsgeo_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 ALARM Datasetget_alarm
Get Dave's Redistricting App Datasetget_dra
Get Harvard Election Data Archive ("HEDA") Datasetget_heda
Get historical United States Congressional District Shapefilesget_lewis
Get Racially Polarized Voting Dataset from RPV Near Meget_rpvnearme
Get 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 States from HEDA Dataverseheda_states
Compute Local Geary's Clocal_gearys
Compute Local Moran's Ilocal_morans
nrcsdnrcsd
orangeorange
precinctsprecincts
R to DRAr2dra
Estimate Regions by Geographic Featuresregionalize
rocklandrockland
Filter Adjacency to Edges Along Borderseam_adj
Filter Shape to Geographies Along Borderseam_geom
Remove Edges along a Boundaryseam_rip
Suggest Edges to Connect Two Sides of a Borderseam_sew
Split a Precinctsplit_precinct
Get the kind of center of each shapest_centerish
Get the centroid of the maximum inscribed circlest_circle_center
Subtract 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 States from VEST Dataversevest_states