The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

TernTables: Publication-Ready Summary Tables and Statistical Testing for Clinical Research

Generates publication-ready summary tables for clinical research, supporting descriptive summaries and comparisons across two or three groups. The package streamlines the analytical workflow by detecting variable types and applying appropriate statistical tests (Welch t-test, Wilcoxon rank-sum, Welch ANOVA, Kruskal-Wallis, Chi-squared, or Fisher's exact test). Results are formatted as 'tibble' objects and can be exported to 'Word' or 'Excel' using the 'officer', 'flextable', and 'writexl' packages. Optional pairwise post-hoc testing for three-group comparisons (Games-Howell and Dunn's test) is available via the 'rstatix' package. Example data are derived from the landmark adjuvant colon cancer trial described in Moertel et al. (1990) <doi:10.1056/NEJM199002083220602>.

Version: 1.6.4
Depends: R (≥ 4.1.0)
Imports: cli, dplyr (≥ 1.0.0), epitools, flextable (≥ 0.9.0), magrittr, officer (≥ 0.4.6), rlang, stats, stringr, tibble, withr, writexl
Suggests: knitr, multcompView, rmarkdown, rstatix, survival, testthat (≥ 3.0.0)
Published: 2026-03-26
DOI: 10.32614/CRAN.package.TernTables
Author: Joshua D. Preston ORCID iD [aut, cre], Helen Abadiotakis ORCID iD [aut], Ailin Tang ORCID iD [aut], Clayton J. Rust ORCID iD [aut], Joshua L. Chan ORCID iD [aut]
Maintainer: Joshua D. Preston <joshua.preston at emory.edu>
BugReports: https://github.com/jdpreston30/TernTables/issues
License: MIT + file LICENSE
URL: https://github.com/jdpreston30/TernTables, https://tern-tables.com/
NeedsCompilation: no
Citation: TernTables citation info
Materials: README, NEWS
CRAN checks: TernTables results

Documentation:

Reference manual: TernTables.html , TernTables.pdf
Vignettes: Getting Started with TernTables (source, R code)

Downloads:

Package source: TernTables_1.6.4.tar.gz
Windows binaries: r-devel: TernTables_1.6.4.zip, r-release: TernTables_1.6.4.zip, r-oldrel: TernTables_1.6.4.zip
macOS binaries: r-release (arm64): TernTables_1.6.4.tgz, r-oldrel (arm64): not available, r-release (x86_64): TernTables_1.6.4.tgz, r-oldrel (x86_64): TernTables_1.6.4.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=TernTables to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.