Skip to content

socialranking

1.2.0Package record

Social Ranking Solutions for Power Relations on Coalitions

0packages depend
2.6Kdownloads / year
90.7%test coverage
0/13flavors OK

Overview

About

The notion of power index has been widely used in literature to evaluate the influence of individual players (e.g., voters, political parties, nations, stockholders, etc.) involved in a collective decision situation like an electoral system, a parliament, a council, a management board, etc., where players may form coalitions. Traditionally this ranking is determined through numerical evaluation. More often than not however only ordinal data between coalitions is known. The package 'socialranking' offers a set of solutions to rank players based on a transitive ranking between coalitions, including through CP-Majority, ordinal Banzhaf or lexicographic excellence solution summarized by Tahar Allouche, Bruno Escoffier, Stefano Moretti and Meltem Öztürk (2020, doi:10.24963/ijcai.2020/3).

Changes in 1.2.0
  • Added generateRandomPowerRelation()
  • Added S3 class DualLexcelScores

From NEWS.md in the release

Install

Health

CRAN checks
13NOTE
Check messages
NOTEDESCRIPTION meta-informationr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64

r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64

Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘PowerRelation.R’ ‘SocialRanking.R’ ‘copeland.R’ ‘doRanking.Rd’
    ‘elementLookup.Rd’ ‘generator.R’ ‘makePowerRelationMonotonic.R’

r-devel-windows-x86_64, r-oldrel-windows-x86_64, r-release-windows-x86_64

Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    'PowerRelation.R' 'SocialRanking.R' 'copeland.R' 'doRanking.Rd'
    'elementLookup.Rd' 'generator.R' 'makePowerRelationMonotonic.R'

CRAN check page ↗

Slowest check: 2.1 min · r-oldrel-windows-x86_64
Status changes
  • NOTE13 NOTENow
  • NOTE12 NOTE2026-04-25
  • ERROR2 OK, 11 NOTE, 1 ERROR2026-03-30
  • NOTE3 OK, 11 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.2.0
READMEYes · 258 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 1.2.0Citation fileNo
Help pages
28 (1 internal)includes a package overview page
Examples that run
100%25 run in a plain check
Exported functions with examples
93%
Documented parameters
93%
Return-value docs
96%
Help pages citing references
39% with a bibliography file

Downloads

2.6K
CRAN downloads in the past year
Rank #18,116 · ~7/day · ~218/mo
Daily download trend is not available in this view yet.
26130 days
71990 days
2.6K1 year
Compare downloads with other packages →
Also on69 r2u6 autocran

Repository

6Stars
1Forks
0Open issues
0Open PRs
5Releases
155Commits
5Commit identities
155 commits · Last activity 2025-03-14
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
1
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2022-03-31 · 52026-07-07 · 6
PracticesBeta

8 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/jassler/socialranking on 2026-10-21.

Continuous integration (1)
GitHub Actions
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2025-03-14 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting (Codecov)
Lint, format, editor (2)
VS CodeRStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)

Installing socialranking adds 6 packages (4 with compiled code, 2.9 MB of source tarballs). Heaviest: rbibutils 1.1 MB, rlang 766 KB, relations 405 KB.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (3)
Author, Maintainer since 0.1.0 (2022)
Author, Copyright holder, Thesis advisor
Author, Copyright holder, Thesis advisor
Releases (7)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.2.0Latest
    record
    2024-05-16 · current release · diff ↗ ·
    added 1 export
    generateRandomPowerRelation
  • R
    R 4.4.0 released · 2024-04-24
  • 1.1.0
    record
    2023-11-29 · diff ↗ ·
    added 20 exports
    %>=L1%, %>=L2%, %>=LP%, %>=LPS%, %>L1%, %>L2%, %>LP%, %>LPS%, L2Ranking, L2Scores, LPRanking, LPSRanking, LPSScores, LPScores, lexcel2Ranking, lexcel2Scores, lexcelPRanking, lexcelPSRanking, lexcelPSScores, lexcelPScores
  • 1.0.1
    record
    2023-08-23 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.0
    record
    2023-03-13 · diff ↗ ·
    removed 1 export
    SocialRankingSolution
    added 12 exports
    L1Ranking, L1Scores, SocialRanking, appendMissingCoalitions, as.PowerRelation, coalitionLookup, elementLookup, generateNextPartition, lexcel1Ranking, lexcel1Scores, makePowerRelationMonotonic, powerRelationGenerator
  • 0.1.2
    record
    2022-10-28 · diff ↗
  • 0.1.1
    record
    2022-04-25 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.0
    record
    2022-03-30
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2022-03-30
Total releases
7 / 4 yrs
License
GPL-3 OSI
Download size
896 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("socialranking")
Fritz, F., Staudacher, J., & Stefano, M. (2024). socialranking: Social Ranking Solutions for Power Relations on Coalitions (Version 1.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.socialranking

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for socialranking version 1.2.0 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy