sumOfVotes function

internal method, computes column-sums

internal method, computes column-sums

Renamed from 'sum.votes' to avoid confusion with the generic sum()

sumOfVotes(votes)

Arguments

  • votes: ballots are rows, candidates are columns

Returns

vector of votes for each candidate

  • Maintainer: Clark Thomborson
  • License: GPL (>= 2)
  • Last published: 2024-10-05