valid_coalitions: Checks whether coalitions are made of permitted parties....

Description Usage Arguments Value

Description

Checks whether coalitions are made of permitted parties. Permitted parties can be defined either in pv$permparties or in allowed_parties parameter. Therefore, the idea is first to collect all specified permitted parties in one vector. This vector will serve as a source for checking whether parties inside the coalitions have valid names. If there are no parties specified, then the check for valid party names is not performed.

Usage

1
valid_coalitions(coalitions, pv, permitted_parties)

Arguments

coalitions

[list]
List of vectors representing coallitions.

pv

[pollyvote]
The pollyvote object

permitted_parties

[character(n)]
Selection of only specific parties for which coalitions are calculated.

Value

list of coalitions consisted only of permitted parties.


pollyvote/pollyvoter documentation built on May 25, 2019, 11:23 a.m.