rtables: Reporting Tables

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.

Getting started

Package overview README.md Advanced rtables - Accessing Values Within a Table" Advanced rtables - Calling Existing afuns Within Custom afuns" Advanced rtables - Custom Analysis and Group Summary Functions" Advanced rtables - Custom Split Functions" Advanced rtables - Some Complex Split Function Worked Examples" Advanced rtables - Structure-Conditional Behavior In `afun`s With `.spl_context`" Advanced rtables - Understanding and Interacting With `TableTree` Objects" Advanced rtables - Useful Behavioral Building Blocks For Complex Custom afuns" Advanced rtables - Using `make_split_fun` Effectively" Advanced rtables - Writing Custom Pruning Functions" Advanced rtables - Writing Custom Scoring Functions For Sorting" Advanced rtables - Writing Reusable Behavior Building Blocks" A Guided Tour of rtables - Advanced" A Guided Tour of rtables - Intermediate Column Counts and Formats" Comparing Against Baselines or Control" Comparison with dplyr Tabulation" Constructing rtables Manually Controlling Splitting Behavior" Customizing Appearance" Example Clinical Trials Tables" Example Complex Analysis Function: Modelling Cox Regression" Exploratory Analysis" Format Precedence and NA Handling" Generating QC-Ready Result Data Frames (ARDs) from Tables" Intermediate rtables - Identifying Required Analysis Behavior Intermediate rtables - Identifying Required Faceting Behavior" Intermediate rtables - Translating Shells To Layouts" Introduction to {rtables}" Introductory rtables - Basic Table Layout Instructions" Introductory `rtables` - Facet And Analysis Nesting" Introspecting Tables" Pathing and Table Structure" Pruning and Sorting Tables" {rtables} Advanced Usage" Subsetting and Manipulating Table Contents" Tabulation Concepts" Titles, Footers, and Referential Footnotes"

Package details

AuthorGabriel Becker [aut] (Original creator of the package), Adrian Waddell [aut], Daniel Sabanés Bové [ctb], Maximilian Mordig [ctb], Davide Garolini [aut] (ORCID: <https://orcid.org/0000-0002-1445-1369>), Emily de la Rua [aut] (ORCID: <https://orcid.org/0009-0000-8738-5561>), Abinaya Yogasekaram [ctb] (ORCID: <https://orcid.org/0009-0005-2083-1105>), Joe Zhu [aut, cre] (ORCID: <https://orcid.org/0000-0001-7566-2787>), David Munoz Tord [ctb], F. Hoffmann-La Roche AG [cph, fnd]
MaintainerJoe Zhu <joe.zhu@roche.com>
LicenseApache License 2.0 | file LICENSE
Version0.6.17
URL https://github.com/pharmaverse/rtables  https://pharmaverse.github.io/rtables/ 
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("rtables")

Try the rtables package in your browser

Any scripts or data that you put into this service are public.

rtables documentation built on Oct. 1, 2026, 9:07 a.m.