Learn R Programming

redist (version 2.0.2)

redist.run.enumpart: Runs the enumpart algorithm

Description

Runs the enumpart algorithm

Usage

redist.run.enumpart(
  ordered_path,
  out_path,
  ndist = 2,
  all = TRUE,
  n = NULL,
  options = NULL
)

Arguments

ordered_path

Path used in redist.prep.enumpart

out_path

Valid path to output the enumerated districts

ndist

number of districts to enumerate

all

boolean. TRUE outputs all districts. FALSE samples n districts.

n

integer. Number of districts to output if all is FALSE. Returns districts selected from uniform random distribution.

options

Additional enumpart arguments. Not recommended for use.

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 {
redist.run.enumpart(ordered_path = '../ordered', out_path = '../enumerated')
# }

Run the code above in your browser using DataLab