Package: pref Title: Preference Voting with Explanatory Graphics Version: 0.4.0 Authors@R: person("Denis", "Mollison", , "denis.mollison@gmail.com", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0002-4014-3431")) Description: Implements the Single Transferable Vote (STV) electoral system, with clear explanatory graphics. The core function stv() uses Meek's method, the purest expression of the simple principles of STV, but which requires electronic counting. It can handle votes expressing equal preferences for subsets of the candidates. A function stv.wig() implementing the Weighted Inclusive Gregory method, as used in Scottish council elections, is also provided, and with the same options, as described in the manual. The required vote data format is as an R list: a function pref.data() is provided to transform some commonly used data formats into this format. References for methodology: Hill, Wichmann and Woodall (1987) , Hill, David (2006) , Mollison, Denis (2023) , (see also the package manual pref_pkg_manual.pdf). URL: https://github.com/denismollison/pref License: MIT + file LICENSE Encoding: UTF-8 Roxygen: list(markdown = TRUE) RoxygenNote: 7.2.3 Imports: base, graphics, grDevices, jpeg, utils Depends: R (>= 3.5) LazyData: true BugReports: https://github.com/denismollison/pref/issues Config/pak/sysreqs: libjpeg-dev Repository: https://denismollison.r-universe.dev Date/Publication: 2024-02-23 23:03:42 UTC RemoteUrl: https://github.com/denismollison/pref RemoteRef: HEAD RemoteSha: 9c1664f41068a433fef2fb2ad0d0e4b94bdb5699 NeedsCompilation: no Packaged: 2026-06-17 08:11:47 UTC; root Author: Denis Mollison [aut, cre, cph] (ORCID: ) Maintainer: Denis Mollison