Skip to contents

Tabulation

Statistics

calc_counts()
Calculate counts of a categorical variable
calc_desc()
Calculate descriptive summary statistics for a numeric variable
calc_stats()
Calculate summary statistics for a variable

Events

event_count()
Count events
event_count_by()
Summarise adverse events by arm and other grouping variables
total_events()
Count total events
multi_event_true()
Summarise multiple AESI-like events per treatment arm

Summary Tables

summary_table()
Summary Table
summary_table_by()
Create a summary table using multiple rows for grouping on one target column
summary_table_by_targets()
Create a summary table using multiple rows for grouping on two target column ideal for creating change from baseline tables

Clinical Tables

AET01_table()
Generate Core Safety Tables for Clinical Study Reports
AET02_table()
Create AET02-style AE summary table

tern

Wrappers for generating tern-compatible tables to enable structured side-by-side comparison

as_dtlg_table()
Convert a TableTree to a dtlg table
tern_summary_table()
Create a clinical reporting table with tern/rtables
tern_AET01_table()
Generate Core Safety Tables (CSR Section 14.3.1) using tern/rtables
tern_AET02_table()
Generate AET02-style AE summary using tern and rtables

Copy semantics

Control how objects are returned as data.tables: by reference (in place) or by value (deep copy).

dt_copy_semantics() set_dt_copy_semantics()
Get or set data.table copy semantics
maybe_copy_dt()
Return a data.table by reference or by value

Built in datasets

adsl
Subject-Level Analysis Dataset (ADSL) example dataset
adlb
ADaM Basic Data Structure (BDS) example dataset
adae
Adverse Event Analysis Dataset example dataset
aesi
Adverse Events of Special Interest (AESI) example dataset

Miscellanea

label()
Retrieve the label of an object
with_label()
Add a label attribute to an object
round_pct()
Rounded percentage
round_sum()
Rounds numbers while preserving the total sum
merge_table_lists()
Merge a list of list-wrapped data.tables into one data.table
cross_tab_to_obsv_tab()
Convert a contingency table to a long-format observation-level data frame
print_dtlg()
Print a dtlg table