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.


elections.dtree documentation built on Sept. 16, 2023, 5:06 p.m.