Skip to contents

Build tfrmt

tfrmt()
Table Format
body_plan()
Table Body Plan
frmt_structure()
Format Structure Object
frmt() frmt_combine() frmt_when()
Table Value Formatting
col_plan() span_structure()
Define the Column Plan & Span Structures
col_style_plan()
Column Style Plan
col_style_structure()
Column Style Structure
row_grp_plan()
Row Group Plan
row_grp_structure()
Row Group Structure Object
element_block()
Element block
element_row_grp_loc()
Element Row Group Location
footnote_plan()
Footnote Plan
footnote_structure()
Footnote Structure
big_n_structure()
Big N Structure
page_plan()
Page Plan
page_structure()
Page structure

Layer

layer_tfrmt()
Layer tfrmt objects together
update_group()
Remap group values in a tfrmt
print_mock_gt()
Print mock table to GT
print_to_gt()
Print to gt
print_to_ggplot()
Print to ggplot
tfrmt_to_json()
Print to JSON
json_to_tfrmt()
json to tfrmt
as_json()
Convert tfrmt elements

Included Templates

tfrmt_n_pct()
N Percent Template
tfrmt_sigdig()
Create tfrmt object from significant digits spec
param_set()
Set custom parameter-level significant digits rounding

Example Data

data_ae
Adverse Events Analysis Results Data
data_demog
Demography Analysis Results Data
data_efficacy
Efficacy Analysis Results Data
data_labs
Labs Analysis Results Data

Helpers

display_row_frmts() display_row_frmts()
Display formatting applied to each row
display_val_frmts()
Display formatted values
apply_frmt()
Apply formatting
cleaned_data_to_gt()
Do all the formatting for the GT
is_frmt() is_frmt_combine() is_frmt_when() is_frmt_structure() is_row_grp_structure()
Check if input is a frmt
make_mock_data()
Make mock data for display shells