Version: 0.0.0.912
Title: Tools for Descriptive Statistics -- New Generation
License: GPL (β₯ 2)
DescTools has been available on CRAN for more than 12 years and has undergone a large number of changes and additions during that time. In this timespan the package gained impressive popularity and was downloaded a million times in 2025. However its historical development has led to inconsistencies that could no longer be resolved through an evolutionary process. It was time to redesign the package to establish a clean new foundation.
DescToolsX is the successor to DescTools, completely redesigned, decluttered, simplified, bugfixed, unified and substantially accelerated.
The DescTools collection of functions has been reviewed, reorganised and grouped into logical units, with particular attention paid to consistency in operation and user interface design. The new approach moves away from the monolithic design of DescTools, which had recently made maintenance so difficult. The functions are now distributed across several packages, which are, however, loaded directly alongside the main package, so the user does not need to do anything further.
DescToolsX is the front-end package that automatically loads:
-
πͺ¨ bedrock
β Core utility functions used across all packages -
π aurora
β Plotting, colour handling, and formatting tools -
π‘ lumen
β Inferential statistics (tests, confidence intervals, distributions) -
π¨ hermes
β MS Office interface and reporting tools
DescToolsX provides a modern, redesigned framework for:
- descriptive statistics
- effect sizes
- agreement measures
- association statistics
- transformations
- model diagnostics
- inequality metrics
- epidemiological utilities
- robust statistics
- date/time utilities
The package emphasizes:
- improved consistency
- cleaner APIs
- better performance
- maintainability
- modern R infrastructure
It depends on the companion ecosystem packages:
auroralumenbedrockhermes
ξfileciteξturn4file0ξ
remotes::install_github("AndriSignorell/DescToolsX")Core descriptive statistics utilities:
desc()abstract()freq()freq2D()percTable()quantileX()meanX()medianX()modeX()varX()skew()kurt()
Example:
desc(mtcars)
abstract(mtcars)Includes classical effect size statistics:
cohenD()glassDelta()etaSq()
Example:
cohenD(x, y, conf.level = 0.95)Advanced inter-rater and reliability statistics:
cohenKappa()ccc()-- concordance correlation coefficientcronbachAlpha()icc()kendallW()krippAlpha()randolphKappa()
Useful for:
- clinical agreement studies
- reliability analysis
- psychometrics
- medical validation studies
Nominal and ordinal association metrics:
cramerV()phi()lambda()somersDelta()gkGamma()kendallTauA()kendallTauB()stuartTauC()tschuprowT()uncertCoef()mutInf()
Wrapper function:
assocsTab(table_data)Includes metrics from economics and ecology:
gini()atkinson()theil()simpson()entropy()herfindahl()rosenbluth()
Example:
gini(income)
atkinson(income, epsilon = 0.5)Data transformation tools:
boxCox()boxCoxLambda()yeoJohnson()scaleX()logSt()
Example:
lambda <- boxCoxLambda(x)
x_bc <- boxCox(x, lambda)Regression and predictive diagnostics:
auc()brierScore()pseudoR2()vif()
Error metrics:
mae()mse()rmse()mape()smape()
Convenient helpers:
addMonths()as_ym()countWorkDays()cutAge()generation()zodiac()
Example:
addMonths("2025-01-31", 1)Robust estimators and resistant methods:
huberM()tukeyBiweight()hodgesLehmann()madX()meanAD()
Additional utilities include:
- imputation tools (
impute(),imputeKnn()) - confusion matrix utilities
- correlation tools
- contingency analysis
- weighted statistics
- scaling helpers
- date conversions
DescToolsX was designed to modernize the original DescTools package while preserving:
- statistical breadth
- practical workflows
- lightweight usage
- compatibility with base R
Key improvements include:
- consistent naming conventions
- modular architecture
- improved documentation
- vectorized implementations
- cleaner confidence interval handling
- modern package ecosystem integration
Core dependencies include:
RcppRcppParallelRcppArmadillostatsbootclistringi
Companion ecosystem:
aurorabedrocklumenhermes
library(DescToolsX)
# descriptive statistics
desc(iris)
# effect size
cohenD(
iris$Sepal.Length[iris$Species == "setosa"],
iris$Sepal.Length[iris$Species == "virginica"]
)
# agreement
cohenKappa(matrix(c(50,5,4,40), nrow=2))
# inequality
gini(c(1,2,3,10))
# transformations
lambda <- boxCoxLambda(AirPassengers)DescToolsX is not merely a direct port of DescTools.
It is a structural redesign emphasizing:
- clearer statistical APIs
- long-term maintainability
- separation into ecosystem modules
- improved computational performance
- better consistency across functions
GPL (β₯ 2)
Based on package documentation from the uploaded
DescToolsX_0.0.0.912.pdf.
