Learn R Programming

redist (version 3.0.7)

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(adj, unordered_path, ordered_path, adjlist)

Arguments

adj

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

adjlist

Deprecated, use adj. zero indexed adjacency list

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 {
temp <- tempdir()
data(fl25)
adj <- redist.adjacency(fl25)
redist.prep.enumpart(adj = adj, unordered_path = paste0(temp, '/unordered'),
                     ordered_path = paste0(temp, '/ordered'))
# }

Run the code above in your browser using DataLab