Skip to content

ClusterR

1.3.6

Gaussian Mixture Models, K-Means, Mini-Batch-Kmeans, K-Medoids and Affinity Propagation Clustering

21packages depend
99.7Kdownloads / year
89.3%test coverage
9/13checks pass

Overview

About
Maintained by Lampros MouselimisFirst published 2016-09-0636 releasesCRAN page ↗GitHub ↗

Gaussian mixture models, k-means, mini-batch-kmeans, k-medoids and affinity propagation clustering with the option to plot, validate, predict (new data) and estimate the optimal number of clusters. The package takes advantage of 'RcppArmadillo' to speed up the computationally intensive parts of the functions. For more information, see (i) "Clustering in an Object-Oriented Environment" by Anja Struyf, Mia Hubert, Peter Rousseeuw (1997), Journal of Statistical Software, doi:10.18637/jss.v001.i04; (ii) "Web-scale k-means clustering" by D. Sculley (2010), ACM Digital Library, doi:10.1145/1772690.1772862; (iii) "Armadillo: a template-based C++ library for linear algebra" by Sanderson et al (2016), The Journal of Open Source Software, doi:10.21105/joss.00026; (iv) "Clustering by Passing Messages Between Data Points" by Brendan J. Frey and Delbert Dueck, Science 16 Feb 2007: Vol. 315, Issue 5814, pp. 972-976, doi:10.1126/science.1136800.

Install

Health

CRAN checks
4NOTE9OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
Slowest check: 14.1 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 1.26
89.3%
Coverage · measured lines
100%
Documentation · exports
8
Dependencies · direct
Check history
  • NOTE2026-07-16
    10 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-05-02
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-22
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-04-10
    9 OK · 5 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
  • ERROR2026-04-09
    8 OK · 5 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 483 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
96%
Documented parameters
100%
Return-value docs
91%
References docs
37%

Downloads

99.7K
CRAN downloads in the past year
Rank #1,501 · ~273/day · ~8.3K/mo
Daily download trend is not available in this view yet.
4.6K30 days
20.3K90 days
99.7K1 year
Compare downloads with other packages →
Also on1.1K r2u37 autocran9.7K conda_forge76 c2d4u

Repository

Repository
85Stars
30Forks
1Open issues
3Open PRs
0Releases
179Commits
7Contributors
gmmkmeansmini-batch-kmeanskmedoids-clusteringrcpparmadillocpp11raffinity-propagation
179 commits · Last activity 2026-02-01 · 0% stars, 30d

Stars over time

2025-04-09 · 842026-07-07 · 85

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/mlampros/clusterr on 2026-07-19.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
Dockerfile
Automation and maintenance (1)
Dependabot
Governance and community (1)
Issue templates
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.2
Imports (8)
RcppgraphicsgrDevicesutilsstatsgmpggplot2lifecycle
LinkingTo (2)
Enhances (0)
none

Code & Tests

Code Composition
R 5,992 (66%)Rd 1,576 (17%)C++ 887 (10%)Vignettes 513 (6%)C 68 (1%)
Code characteristics
Object systems
S37
Cyclomatic complexity
2.0 median / 51 max
Test cases
295 / 1.26 per code line

Test coverage

Line coverage

89%

Expression

89.5%

Tests / Examples

89.3% / 50% ex

Functions

107 22 exported

Complexity

7.6 avg / 51 max

Call network

107 nodes / 75 edges

Loading call graph…

Lowest coverage

107 functions
FunctionCycloCoverage
function_interactive30%
print.GMMCluster10%
print.KMeansCluster10%
print.MedoidsCluster20%
Optimal_Clusters_Medoids exp5140%
silhouette_of_clusters exp543%

Datasets

Bundled datasets · 3
NameClassRows × ColsAlso ships in
dietary_survey_IBSdata.frame400 × 43
mushroomdata.frame8,124 × 23
soybeandata.frame307 × 36

People & History

People (8)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (2)
Contributor · added in 1.3.5
Contributor · added in 1.2.6
Copyright holders (5)
Copyright holder · added in 1.1.6
Copyright holder · added in 1.1.6
Copyright holder · added in 1.1.6
Copyright holder · added in 1.1.6
Copyright holder · added in 1.1.6
Package Timeline

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

  • R
    R 4.6.0 released · 2026-04-24
  • 1.3.6Latest
    2025-12-22 · current release · diff ↗
  • 1.3.5
    2025-10-18 · diff ↗
  • 1.3.4
    2025-09-14 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.3.3
    2024-06-18 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.3.2
    2023-12-04 · diff ↗
  • 1.3.1
    2023-04-29 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.3.0
    2023-01-21 · diff ↗
  • 1.2.9
    2022-12-13 · diff ↗
  • 1.2.8
    2022-12-03 · diff ↗
  • 1.2.7
    2022-09-21 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.2.6
    2022-01-28 · diff ↗
Show 31 earlier events
  • 1.2.5
    2021-05-21 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.2.4
    2021-05-04 · diff ↗
  • 1.2.3
    2021-05-03 · diff ↗
  • 1.2.2
    2020-05-12 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.2.1
    2019-11-29 · diff ↗
  • 1.2.0
    2019-07-18 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.1.9
    2019-04-14 · diff ↗
  • 1.1.8
    2019-01-11 · diff ↗
  • 1.1.7
    2018-12-10 · diff ↗
  • 1.1.6
    2018-11-08 · diff ↗
  • 1.1.5
    2018-10-05 · diff ↗
  • 1.1.4
    2018-08-22 · diff ↗
  • 1.1.3
    2018-07-21 · diff ↗
  • 1.1.2
    2018-05-04 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.1.1
    2018-02-26 · diff ↗
  • 1.1.0
    2018-01-17 · diff ↗
  • 1.0.9
    2017-11-30 · diff ↗
  • 1.0.8
    2017-10-28 · diff ↗
  • 1.0.7
    2017-10-14 · diff ↗
  • 1.0.6
    2017-08-03 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 1.0.5
    2017-02-11 · diff ↗
  • 1.0.4
    2017-02-02 · diff ↗
  • 1.0.3
    2016-10-08 · diff ↗
  • 1.0.1
    2016-09-09 · diff ↗
  • 1.0.0
    2016-09-06
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2016-09-06
Total releases
36 / 10 yrs
License
GPL-3 OSI
Minimum R
≥ 3.2
Bundled data
158 KB / 3 files
Download size
959 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →