sumZR: Calculates sum of absolute differences

Description Usage Arguments Details Value Author(s)

View source: R/sumZR.R

Description

This is a helper function to calculate the sum of the absolute differences |Z-R|

Usage

1
sumZR(Z,R)

Arguments

Z

Population vector

R

Vector for the representatives

Details

This is a helper function.

Value

Sum of absolute differences

Author(s)

Didier Ruedin


polrep documentation built on Feb. 24, 2018, 3:01 a.m.