prepare.votes: Coerce input 'data' into a matrix

View source: R/check_votes.R

prepare.votesR Documentation

Coerce input 'data' into a matrix

Description

Coerce input 'data' into a matrix

Usage

prepare.votes(data, fsep = "\n")

Arguments

data

possibly a .csv file, possibly an R object

fsep

separation character for .csv e.g. tab or comma

Value

a matrix with one row per ballot, one column per candidate, with named rows and columns


SafeVote documentation built on Oct. 6, 2024, 1:07 a.m.