Skip to content

anticlust

0.8.14

Subset Partitioning via Anticlustering

3packages depend
15Kdownloads / year
70.8%test coverage
13/13checks pass

Overview

About
Maintained by Martin PapenbergFirst published 2020-06-2921 releasesCRAN page ↗GitHub ↗

The method of anticlustering partitions a pool of elements into groups (i.e., anticlusters) with the goal of maximizing between-group similarity or within-group heterogeneity. The anticlustering approach thereby reverses the logic of cluster analysis that strives for high within-group homogeneity and clear separation between groups. Computationally, anticlustering is accomplished by maximizing instead of minimizing a clustering objective function, such as the intra-cluster variance (used in k-means clustering) or the sum of pairwise distances within clusters. The main function anticlustering() gives access to optimal and heuristic anticlustering methods described in Papenberg and Klau (2021; doi:10.1037/met0000301), Brusco et al. (2020; doi:10.1111/bmsp.12186), Papenberg (2024; doi:10.1111/bmsp.12315), Papenberg, Wang, et al. (2025; doi:10.1016/j.crmeth.2025.101137), Papenberg, Breuer, et al. (2025; doi:10.1017/psy.2025.10052), and Yang et al. (2022; doi:10.1016/j.ejor.2022.02.003). The optimal algorithms require that an integer linear programming solver is installed. This package will install 'lpSolve' (https://cran.r-project.org/package=lpSolve) as a default solver, but it is also possible to use the package 'Rglpk' (https://cran.r-project.org/package=Rglpk), which requires the GNU linear programming kit (https://www.gnu.org/software/glpk/glpk.html), the package 'Rsymphony' (https://cran.r-project.org/package=Rsymphony), which requires the SYMPHONY ILP solver (https://github.com/coin-or/SYMPHONY), or the commercial solver Gurobi, which provides its own R package that is not available via CRAN (https://www.gurobi.com/downloads/). 'Rglpk', 'Rsymphony', 'gurobi' and their system dependencies have to be manually installed by the user because they are only suggested dependencies. Full access to the bicriterion anticlustering method proposed by Brusco et al. (2020) is given via the function bicriterion_anticlustering(), while kplus_anticlustering() implements the full functionality of the k-plus anticlustering approach proposed by Papenberg (2024). Some other functions are available to solve classical clustering problems. The function balanced_clustering() applies a cluster analysis under size constraints, i.e., creates equal-sized clusters. The function matching() can be used for (unrestricted, bipartite, or K-partite) matching. The function wce() can be used optimally solve the (weighted) cluster editing problem, also known as correlation clustering, clique partitioning problem or transitivity clustering.

Install

Health

CRAN checks
13OK
Slowest check: 9.8 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.00
70.8%
Coverage · measured lines
100%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-06-10
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-06
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-05-03
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 1 earlier snapshots
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
96%
Documented parameters
100%
Return-value docs
82%
References docs
71%

Downloads

15K
CRAN downloads in the past year
Rank #3,556 · ~41/day · ~1.2K/mo
Daily download trend is not available in this view yet.
83930 days
3.1K90 days
15K1 year
Compare downloads with other packages →
Also on562 r2u66 autocran

Repository

Repository
38Stars
10Forks
4Open issues
1Open PRs
38Releases
1,814Commits
6Contributors
1,814 commits · Last activity 2026-06-30 · 0% stars, 30d

Stars over time

2025-03-13 · 342026-07-07 · 38

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/m-py/anticlust on 2026-07-30.

Continuous integration (1)
GitHub Actions
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.6.0
Imports (3)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
3direct
0indirect

Code & Tests

Datasets

People & History

People (8)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (6)
Contributor · added in 0.6.0
Contributor · added in 0.7.0
Contributor · added in 0.8.9
Contributor
Contributor
Contributor · added in 0.6.3
Other (1)
Thesis advisor
Listed in earlier versions (4)
no longer listed · 0.5.0 to 0.5.6
no longer listed · 0.5.0 to 0.5.6
no longer listed · 0.6.0 to 0.8.14
no longer listed · 0.6.0 to 0.8.14
Package Timeline

21 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.8.14Latest
    2026-04-15 · current release · diff ↗
  • 0.8.13
    2025-11-29 · diff ↗
  • 0.8.12
    2025-10-31 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.8.10-1
    2025-03-26 · diff ↗
  • 0.8.10
    2025-03-14 · diff ↗
  • 0.8.9-1
    2025-01-20 · diff ↗
  • 0.8.9
    2025-01-17 · diff ↗
  • 0.8.7
    2024-10-01 · diff ↗
  • 0.8.5
    2024-05-05 · diff ↗
  • 0.8.3
    2024-04-24 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.8.1
    2023-10-26 · diff ↗
  • 0.8.0-1
    2023-10-25 · diff ↗
  • 0.8.0
    2023-09-14 · diff ↗
Show 12 earlier events
  • 0.7.0
    2023-07-15 · diff ↗
  • 0.6.4
    2023-05-02 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.6.3
    2023-01-30 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.6.1
    2021-12-07 · diff ↗
  • 0.6.0
    2021-12-01 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.5.6
    2020-11-24 · diff ↗
  • 0.5.3
    2020-09-25 · diff ↗
  • 0.5.0
    2020-06-29
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2020-06-29
Total releases
21 / 6 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.6.0
Bundled data
17 KB / 2 files
Download size
598 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →