A Guided Tour of rtables - Advanced"

suggested_dependent_pkgs <- c("dplyr")
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  eval = all(vapply(
    suggested_dependent_pkgs,
    requireNamespace,
    logical(1),
    quietly = TRUE
  ))
)
knitr::opts_chunk$set(comment = "#")

Scope and Audience

We saw in the previous intermediate portion of this tour that a well engineered library of analysis, group summary, and split functions can combine to support a massive array of different individual tables. Whether we are tasked with maintaining and extending those libraries or simply with creating custom tables outside of that supported space, we sometimes need to write new custom functions. By the end of this portion of the tour we will have the tools necessary to do that. While gaining those tools, we will also become more familiar with the structure of TableTree objects (how rtables models tables) and how to interact with them once they are created.

Upon learning the material in this portion of the training, users will be able to fully exploit the flexibility and power of the rtables layout and table engines to create virtually any desired table in cases when their existing function library falls short.

Chapters



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.