Learn R Programming

SafeVote (version 1.0.1)

invalid.votes: Extracts the invalid.votes member (if any) from the result of a count

Description

This method was added Jan 2022 -- it was named in a warning message but had apparently either never been implemented, or had been "lost" through versioning.

Usage

invalid.votes(x)

Value

matrix with one column per candidate and one row per invalid ballot

Arguments

x

value returned by stv, condorcet, approval, plurality, or score