Package: TernTables Type: Package Title: Automated Statistical Analysis and Table Generation for Biomedical Research Version: 1.8.0.9000 Authors@R: c( person("Joshua D.", "Preston", email = "joshua.preston@emory.edu", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-9834-3017")), person("Helen", "Abadiotakis", role = "aut", comment = c(ORCID = "0009-0002-8268-927X")), person("Ailin", "Tang", role = "aut", comment = c(ORCID = "0009-0007-8715-1678")), person("Clayton J.", "Rust", role = "aut", comment = c(ORCID = "0000-0001-5929-0733")), person("John W.", "O'Neill", role = "aut", comment = c(ORCID = "0009-0001-8669-4925")), person("Michael E.", "Halkos", role = "aut", comment = c(ORCID = "0000-0001-9191-7743")), person("Mani A.", "Daneshmand", role = "aut", comment = c(ORCID = "0000-0002-0191-9911")), person("Joshua L.", "Chan", role = "aut", comment = c(ORCID = "0000-0001-7220-561X")) ) Description: 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) . License: MIT + file LICENSE URL: https://cran.r-project.org/package=TernTables, https://github.com/jdpreston30/TernTables, https://tern-tables.com/ BugReports: https://github.com/jdpreston30/TernTables/issues Encoding: UTF-8 Imports: cli, dplyr (>= 1.0.0), flextable (>= 0.9.0), magrittr, multcompView, officer (>= 0.4.6), rlang, rstatix, stats, stringr, tibble, withr, writexl Suggests: knitr, rmarkdown, survival, testthat (>= 3.0.0) VignetteBuilder: knitr Depends: R (>= 4.1.0) LazyData: true Config/testthat/edition: 3 Config/roxygen2/version: 8.1.1 Config/pak/sysreqs: libcairo2-dev cmake libfontconfig1-dev libfreetype6-dev libfribidi-dev make libharfbuzz-dev libicu-dev libjpeg-dev libpng-dev libtiff-dev libuv1-dev libwebp-dev libxml2-dev libssl-dev zlib1g-dev Repository: https://jdpreston30.r-universe.dev Date/Publication: 2026-11-03 16:09:11 UTC RemoteUrl: https://github.com/jdpreston30/TernTables RemoteRef: HEAD RemoteSha: 841b9e6e0e78b616e7a9a610a404ff812322ed4a NeedsCompilation: no Packaged: 2026-11-04 00:59:52 UTC; root Author: Joshua D. Preston [aut, cre] (ORCID: ), Helen Abadiotakis [aut] (ORCID: ), Ailin Tang [aut] (ORCID: ), Clayton J. Rust [aut] (ORCID: ), John W. O'Neill [aut] (ORCID: ), Michael E. Halkos [aut] (ORCID: ), Mani A. Daneshmand [aut] (ORCID: ), Joshua L. Chan [aut] (ORCID: ) Maintainer: Joshua D. Preston