Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Runs redistricting analysis in R with the redistverse packages, covering data loading, simulation, constraints, metrics and visualization.
45% 86%+41 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 10 of 22 without it.
To obtain official Census Bureau Block Assignment Files (BAF) for state legislative redistricting reconciliation in R, which package provides a direct function to download these BAF files?
The response recommends using the baf package.
3 of 3 safety checks passed
redistio provides a Shiny-based point-and-click interface for drawing and editing redistricting plans, and a separate interactive editor for adjacency graphs. It integrates with redist_map and redist_plans objects so that plans drawn in the UI can be immediately compared against a simulated ensemble.
draw()Launches an interactive map where users can click precincts to assign them to districts. Works with a bare sf object for simple drawing, or a redist_map for algorithmic assistance and live statistical feedback.
library(redistio)
library(redistverse)
map <- alarm_50state_map('MD')
plans <- alarm_50state_plans('MD')
# Simple interactive drawing (sf only)
draw(shp = map)
# With simulated ensemble for live comparison
draw(
shp = map,
plans = plans,
init_plan = map$cd_2020, # starting plan shown in the UI
pop_col = 'pop',
pop_tol = 0.005,
split_cols = 'county',
elect_cols = c('ndv', 'nrv'),
demog_cols = c('pop_black', 'pop_hisp')
)
redist_map is supplied, can run short-burst optimization from within the UINext to this one in the catalogue, plus more from the same author.