Learn R Programming

elections.dtree (version 2.0.0)

read_ballots: 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.