read_ballots: Read 'ranked_ballots' from a file.

View source: R/ballots.R

read_ballotsR Documentation

Read ranked_ballots from a file.

Description

Deprecated in favour of 'prefio' plus PrefLib formats. Reads a set of partial IRV ballots from a file. The file is expected to follow the ballot:count standard, with a header describing all participating candidates.

Usage

read_ballots(file)

Arguments

file

The name of the file to read from, or a character vector of file lines.


fleverest/dirtree-elections documentation built on Sept. 21, 2023, 8:33 p.m.