Compositional Data Analysis
Overview
Methods for analysis of compositional data including robust methods (doi:10.1007/978-3-319-96422-5), imputation of missing values (doi:10.1016/j.csda.2009.11.023), methods to replace rounded zeros (doi:10.1080/02664763.2017.1410524, doi:10.1016/j.chemolab.2016.04.011, doi:10.1016/j.csda.2012.02.012), count zeros (doi:10.1177/1471082X14535524), methods to deal with essential zeros (doi:10.1080/02664763.2016.1182135), (robust) outlier detection for compositional data, (robust) principal component analysis for compositional data, (robust) factor analysis for compositional data, (robust) discriminant analysis for compositional data (Fisher rule), robust regression with compositional predictors, functional data analysis (doi:10.1016/j.csda.2015.07.007) and p-splines (doi:10.1016/j.csda.2015.07.007), contingency (doi:10.1080/03610926.2013.824980) and compositional tables (doi:10.1111/sjos.12326, doi:10.1111/sjos.12223, doi:10.1080/02664763.2013.856871) and (robust) Anderson-Darling normality tests for compositional data as well as popular log-ratio transformations (addLR, cenLR, isomLR, and their inverse transformations). In addition, visualisation and diagnostic tools are implemented as well as high and low-level plot functions for the ternary diagram.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-17
- NOTE11 OK, 2 NOTE2026-06-09
- ERROR11 OK, 1 NOTE, 1 ERROR2026-06-08
Show 3 earlier changesHide 3 earlier changes
- NOTE10 OK, 4 NOTE2026-04-22
- ERROR9 OK, 4 NOTE, 1 ERROR2026-04-18
- NOTE10 OK, 4 NOTE2026-03-10
Documentation
- Help pages
- 145includes a package overview page
- Examples that run
- 94%133 run in a plain check · 4 only when donttest examples are enabled (R CMD check --as-cran) · 3 never run · 2 hold no code
- Exported functions with examples
- 99%
- Documented parameters
- 99%
- Return-value docs
- 96%
- Help pages citing references
- 69%
Downloads
Repository
- PRs merged (all time)
- 80%
- Median days to close, 50 most recently updated closed issues
- 2
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
3 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/matthias-da/robcompositions on 2026-10-11.
This repository shows signs of AI coding tools.
- Claude Codefirst seen on or before 2026-03-16Named in .Rbuildignore: .claude, CLAUDE.mdCommits: at least 3 crediting it in the message
- Claude Opus 4.63 commits · Mar 2026
Dependencies
Installing robCompositions adds 76 packages (48 with compiled code, 85 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Show 5 more contributorsHide 5 contributors
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- unarchivedReturned to CRAN2021-09-20
- archivedRemoved from CRAN2021-07-17requires archived package 'sROC'
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 3.0.3Latest
Show 54 earlier eventsHide 54 earlier events
- RR 3.0.0 released · 2013-04-03
- 2.15.32013-02-27 · diff ↗
- 2.15.12012-05-15 · diff ↗
- RR 2.15.0 released · 2012-03-30
- RR 2.14.0 released · 2011-10-31
- 2.13.1
- RR 2.13.0 released · 2011-04-13
- 2.12.22011-01-10 · diff ↗
- RR 2.12.0 released · 2010-10-15
- 2.12.02010-08-16 · diff ↗
- RR 2.11.0 released · 2010-04-22
- 2.10.12009-12-11 · diff ↗ ·
removed 9 exports
print.adtestWrapper, summary.adtestWrapper, print.imp, summary.imp, plot.imp, print.outCoDa, plot.outCoDa, print.pcaCoDa, plot.pcaCoDaadded 2 exports
daFisher, ternaryDiag - RR 2.10.0 released · 2009-10-26
- 2.10.02009-04-29 · diff ↗ ·
added 11 exports
adtest, adtestWrapper, print.adtestWrapper, summary.adtestWrapper, outCoDa, print.outCoDa, plot.outCoDa, print.pcaCoDa, pcaCoDa, plot.pcaCoDa, pfa - RR 2.9.0 released · 2009-04-17
- 2.9.02009-03-06 · diff ↗
- 2.8.12008-12-15 · diff ↗ ·
added 10 exports
adjust, aDist, ilr, impCoda, impKNNa, invilr, robVariation, print.imp, summary.imp, plot.imp - 2.6.0
- 2.4.2
- 2.4.12023-08-25 · diff ↗ ·
added 8 exports
bpc, bpcPca, bpcPcaTab, bpcReg, bpcRegTab, bpcTab, bpcTabWrapper, norm1 - 2.3.1
- 2.3.02020-11-18 · diff ↗ ·
added 7 exports
ZBsplineBasis, compositionalSpline, fcenLR, fcenLRinv, fcenLRp, fcenLRu, trapzc - 2.2.12020-02-11 · diff ↗
- 2.2.0
- 2.1.0
- 2.0.102019-02-19 · diff ↗
- 2.0.9
- 2.0.82018-05-29 · diff ↗
- 2.0.72018-04-08 · diff ↗
- 2.0.62017-08-14 · diff ↗
- 2.0.52017-07-12 · diff ↗ ·
added 16 exports
SDev, ced, coord, gmean, gmean_sum, ilr.2x2, ind2x2, indTab, int2x2, intArray, intTab, pTab, rSDev, rSDev.test, rdcm, stats - 2.0.32017-01-12 · diff ↗ ·
added 7 exports
balances, biomarker, iprod, perturbation, pivotCoord, pivotCoordInv, powering - 2.0.22016-08-22 · diff ↗ ·
added 6 exports
clustCoDa, clustCoDa_qmode, corCoDa, daCoDa, isomLRinvp, isomLRp - 2.0.02016-02-08 · diff ↗ ·
removed 2 exports
robVariation, ternaryDiagLinesadded 6 exports
adjustImputed, checkData, compareMahal, imputeBDLs, variation, zeroOut - 1.9.1
- 1.9.02014-08-18 · diff ↗
- 1.8.02014-03-16 · diff ↗
- 1.7.02014-02-07 · diff ↗
- 1.6.4
- 1.6.3
- 1.6.22013-01-11 · diff ↗ ·
added 11 exports
addLR, addLRinv, cenLR, cenLRinv, gm, isomLR, isomLRinv, lmCoDaX, missPatterns, zeroPatterns, orthbasis - 1.6.02012-05-15 · diff ↗ ·
added 4 exports
ternaryDiagPoints, ternaryDiagLines, ternaryDiagAbline, ternaryDiagEllipse - 1.5.02011-05-06 · diff ↗
- 1.4.42011-01-11 · diff ↗
- 1.4.32010-08-16 · diff ↗
- 1.4.22010-07-05 · diff ↗
- 1.4.12010-06-21 · diff ↗
- 1.4.02010-04-06 · diff ↗
- 1.3.32010-01-18 · diff ↗
- 1.3.2
- 1.2.22009-05-08 · diff ↗
- 1.2
- 1.0.12009-01-20
- RR 2.8.0 released · 2008-10-20
Package metadata
- First published
- 2008-12-15
- Total releases
- 46 / 18 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 1.0 MB / 50 files
- Download size
- 1.8 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("robCompositions")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.