fastVoteR

Efficient Rcpp Voting Methods for Committee Selection in R

https://github.com/bblodfon/fastvoter

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Efficient Rcpp Voting Methods for Committee Selection in R

Basic Info
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.Rmd

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# fastVoteR


[![R-CMD-check](https://github.com/bblodfon/fastVoteR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/bblodfon/fastVoteR/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/bblodfon/fastVoteR/graph/badge.svg)](https://app.codecov.io/gh/bblodfon/fastVoteR)
[![CRAN status](https://www.r-pkg.org/badges/version/fastVoteR)](https://CRAN.R-project.org/package=fastVoteR)


## Overview

`fastVoteR` is an R package with Efficient [Rcpp](https://github.com/rcppcore/rcpp) Voting Methods for Committee Selection.

Still **under development**.

## Installation

``` r
# CRAN version:
install.packages("fastVoteR")

# Development version from GitHub:
# install.packages("pak")
pak::pak("bblodfon/fastVoteR")
```

## Usage

```{r example}
library(fastVoteR)

# 5 candidates
candidates = paste0("V", seq_len(5))
candidates

# 4 voters
voters = list(
  c("V3", "V1", "V4"),
  c("V3", "V1"),
  c("V3", "V2"),
  c("V2", "V4")
)
voters

set.seed(42)

# voter weights
weights = c(1.1, 2.5, 0.8, 0.9)

# Approval voting (all voters equal)
rank_candidates(voters, candidates)

# Approval voting (voters unequal)
rank_candidates(voters, candidates, weights)

# Satisfaction Approval voting (voters unequal)
rank_candidates(voters, candidates, weights, method = "sav")

# Sequential Proportional Approval voting (voters equal)
rank_candidates(voters, candidates, method = "seq_pav")
```

## Related work

See [vote](https://CRAN.R-project.org/package=vote) and [votesys](https://CRAN.R-project.org/package=votesys) R packages.
For strictly ABC-voting rules, see [abcvoting](https://github.com/martinlackner/abcvoting) Python package.

---

## Code of Conduct

Please note that the `fastVoteR` project is released with a [Contributor Code of Conduct](https://bblodfon.github.io/fastVoteR/CODE_OF_CONDUCT.html).
By contributing to this project, you agree to abide by its terms.

Owner

  • Name: John Zobolas
  • Login: bblodfon
  • Kind: user

GitHub Events

Total
  • Watch event: 1
  • Member event: 1
  • Push event: 23
  • Public event: 1
Last Year
  • Watch event: 1
  • Member event: 1
  • Push event: 23
  • Public event: 1

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 794 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: fastVoteR

Efficient Voting Methods for Committee Selection

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 794 Last month
Rankings
Dependent packages count: 27.7%
Forks count: 28.9%
Dependent repos count: 34.1%
Stargazers count: 36.6%
Average: 42.8%
Downloads: 87.0%
Maintainers (1)
Last synced: 10 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v4 composite
  • actions/upload-artifact v4 composite
  • codecov/codecov-action v4 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • Rcpp * imports
  • checkmate * imports
  • data.table * imports
  • mlr3misc >= 0.15.1 suggests
  • testthat >= 3.0.0 suggests