Reporting tables often have structure that goes beyond simple rectangular data. The 'rtables' package provides a framework for declaring complex multi-level tabulations and then applying them to data. This framework models both tabulation and the resulting tables as hierarchical, tree-like objects which support sibling sub-tables, arbitrary splitting or grouping of data in row and column dimensions, cells containing multiple values, and the concept of contextual summary computations. A convenient pipe-able interface is provided for declaring table layouts and the corresponding computations, and then applying them to data.
| Version: | 0.6.16 |
| Depends: | formatters (≥ 0.5.12), magrittr (≥ 2.0.3), methods, R (≥ 4.1) |
| Imports: | checkmate (≥ 2.1.0), htmltools (≥ 0.5.8.1), lifecycle (≥ 1.0.4), stats, stringi (≥ 1.8.4) |
| Suggests: | broom (≥ 1.0.8), car (≥ 3.1-3), dplyr (≥ 1.0.5), knitr (≥ 1.42), lme4 (≥ 1.1-35.5), r2rtf (≥ 0.3.2), rmarkdown (≥ 2.28), survival (≥ 3.3-1), testthat (≥ 3.3.0), tibble (≥ 3.2.1), tidyr (≥ 1.1.3), withr (≥ 2.0.0), xml2 (≥ 1.3.5) |
| Published: | 2026-04-22 |
| DOI: | 10.32614/CRAN.package.rtables |
| Author: | Gabriel Becker [aut] (Original creator of the package),
Adrian Waddell [aut],
Daniel Sabanés Bové [ctb],
Maximilian Mordig [ctb],
Davide Garolini |