Learn R Programming

redist (version 2.0.2)

redist.prep.enumpart: Prepares a run of the enumpart algorithm by ordering edges

Description

Prepares a run of the enumpart algorithm by ordering edges

Usage

redist.prep.enumpart(adjlist, unordered_path, ordered_path)

Arguments

adjlist

zero indexed adjacency list

unordered_path

valid path to output the unordered adjacency map to

ordered_path

valid path to output the ordered adjacency map to

Value

0 on success

References

Benjamin Fifield, Kosuke Imai, Jun Kawahara, and Christopher T Kenny. "The Essential Role of Empirical Validation in Legislative Redistricting Simulation." Forthcoming, Statistics and Public Policy.

Examples

Run this code
# NOT RUN {
data("algdat.p10")
redist.prep.enumpart(adjlist = algdat.p10$adjlist, unordered_path = '../unordered', 
ordered_path = '../ordered')
# }

Run the code above in your browser using DataLab