Calculate Distance Measures for DataFrames
Overview
It provides functions that calculate Mahalanobis distance, Euclidean distance, Manhattan distance, Chebyshev distance, Hamming distance, Canberra distance, Minkowski dissimilarity (distance defined for p >= 1), Cosine dissimilarity, Bhattacharyya dissimilarity, Jaccard distance, Hellinger distance, Bray-Curtis dissimilarity, Sorensen-Dice dissimilarity between each pair of species in a list of data frames. These statistics are fundamental in various fields, such as cluster analysis, classification, and other applications of machine learning and data mining, where assessing similarity or dissimilarity between data is crucial. The package is designed to be flexible and easily integrated into data analysis workflows, providing reliable tools for evaluating distances in multidimensional contexts.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 39
- Examples that run
- 100%39 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
Checks run against github.com/hflavio12/cmahalanobis on 2026-10-22.
No development-tooling practices detected in the upstream repository.
Dependencies
Installing cmahalanobis adds 1 package (1 with compiled code, 207 KB of source tarballs). Heaviest: matrixStats 207 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.1.0Latest
- RR 4.6.0 released · 2026-04-24
- 1.0.02025-09-14 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.5.02025-01-08 · diff ↗ ·
added 27 exports
cbhattacharyya, cbraycurtis, ccanberra, ccosine, chamming, chellinger, cjaccard, cminkowski, csorensendice, generate_report_cbhattacharyya, generate_report_cbraycurtis, generate_report_ccanberra, generate_report_ccosine, generate_report_chamming, generate_report_chellinger, generate_report_cjaccard, generate_report_cminkowski, generate_report_csorensendice, pvaluescbatt, pvaluescbrcu, pvaluesccanb, pvaluesccosi, pvalueschamm, pvalueschell, pvaluescjacc, pvaluescmink, pvaluescsore - 0.4.22024-09-24 · diff ↗
- 0.4.12024-09-22 · diff ↗
- 0.4.02024-09-16 · diff ↗ ·
added 8 exports
generate_report_cchebyshev, generate_report_ceuclide, generate_report_cmahalanobis, generate_report_cmanhattan, pvaluesccheb, pvaluesceucl, pvaluescmaha, pvaluescmanh - 0.3.0
- 0.2.02024-05-17 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.1.02024-02-20
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2024-02-20
- Total releases
- 9 / 2 yrs
- License
- GPL-3 OSI
- Download size
- 82 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("cmahalanobis")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.2139/ssrn.4774700.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.