weight_list_votes: Create weighted votes matrix

View source: R/biproportional-upper.R

weight_list_votesR Documentation

Create weighted votes matrix

Description

Weight list votes by dividing the votes matrix entries by the number of seats per district. This method is used in upper_apportionment() if use_list_votes is TRUE (default).

Usage

weight_list_votes(votes_matrix, district_seats)

Arguments

votes_matrix

votes matrix

district_seats

seats per district, vector with same length as ncol(votes_matrix)

Value

the weighted votes_matrix

Note

The weighted votes are not rounded. Matrix and vector names are ignored.

Examples

weight_list_votes(uri2020$votes_matrix, uri2020$seats_vector)


polettif/proporz documentation built on Feb. 20, 2025, 11:19 a.m.