Learn R Programming

redist (version 2.0.2)

redist.parity: Calculates Population Parity

Description

redist.parity computes the population parity of a matrix of maps.

Usage

redist.parity(district_membership, population, ncores = 1)

Arguments

district_membership

A matrix with one row for each precinct and one column for each map. Required.

population

A numeric vector with the population for every precinct.

ncores

Number of cores to use for parallel computing. Default is 1.

Value

numeric vector with the population parity for each column