Learn R Programming

chevron: Standard TLGs for clinical trials reporting

[![Check

Copy Link

Version

Install

install.packages('chevron')

Monthly Downloads

8,037

Version

0.2.13

License

Apache License 2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Joe Zhu

Last Published

July 17th, 2026

Functions in chevron (0.2.13)

cfbt01_lyt

cfbt01 Layout
assert_valid_type

Check variable is of correct type
assert_valid_var_pair

Check variables are of same levels
assert_single_value

Check variable only has one unique value.
assert_valid_var

Check whether var is valid
assert_valid_variable

Check variables in a data frame are valid character or factor.
cfbt01_main

CFBT01 Change from Baseline By Visit Table.
check_all_colnames

Check that all names are among column names
check_one_colnames

Check that at least one name is among column names
chevron-package

chevron package
cml02a_gl_main

CML02A_GL Listing 1 (Default) Concomitant Medication Class Level 2, Preferred Name, and Investigator-Specified Terms.
coxt01_main

COXT01 (Default) Cox Regression Model Table.
chevron_tlg-class

chevron_tlg class
convert_to_month

Helper function to convert to months if needed
cmt02_pt_main

CMT02_PT Table 1 (Default) Concomitant Medications by Preferred Name.
coxt01_lyt

COXT01 Layout
cmt01_label

CMT01A Concomitant Medication by Medication Class and Preferred Name.
count_children

Count Children
count_patients_recursive

Count patients recursively
count_or_summarize

Count or summarize by groups
dmt01_main

DMT01 Table 1 (Default) Demographics and Baseline Characteristics Table 1.
do_call

Execute a function call
create_id_listings

Concatenate Site and Subject ID
ctcv4_dir

CTC version 4 Grade Direction Data
ctcv5_dir

CTC version 5 Grade Direction Data
deparse_print

Deparse print
dmt01_lyt

dmt01 Layout
coxt02_main

COXT02 Multi-Variable Cox Regression Model Table.
dataset

Data Set
egt02_lyt

egt02 Layout
egt01_main

EGT01 ECG Parameters and Change from Baseline By Visit Table.
dst01_main

DST01 Table 1 (Default) Patient Disposition Table 1.
egt03_main

EGT03 Shift Table of ECG Interval Data - Baseline versus Minimum or Maximum Post-Baseline.
egt02_1_main

EGT02 ECG Abnormalities Table.
egt02_2_main

EGT02_2 ECG Abnormalities Table.
dtht01_main

DTHT01 Table 1 (Default) Death Table.
dummy_template

Dummy template.
dose_change_rule

Dose Change Rule
dst01_lyt

dst01 Layout
dtht01_lyt

dtht01 Layout
egt05_qtcat_main

EGT05_QTCAT ECG Actual Values and Changes from Baseline by Visit Table.
ext01_lyt

ext01 Layout
ext01_main

EXT01 Exposure Summary Table.
format_date

Formatting of date
fstg01_main

FSTG01 Subgroup Analysis of Best Overall Response.
empty_rule

Empty rule
expand_list

Expand list to each split
egt03_lyt

egt03 Layout
execute_with_args

Execute function with given arguments
egt05_qtcat_lyt

EGT05_QTCAT Layout
get_page_by

Get page by value
get_section_div

Get Section dividers
gg_list

List of gg object
fstg02_main

FSTG02 Subgroup Analysis of Survival Duration.
fuse_sequentially

Fuse list elements
gen_args

General Argument Name Convention
get_grade_rule

Get grade rule
lbt04_main

LBT04 Laboratory Abnormalities Not Present at Baseline Table.
kmg01_main

KMG01 Kaplan-Meier Plot 1.
lbt01_main

LBT01 Lab Results and Change from Baseline by Visit Table.
get_subset

Subset Arguments and Merge
get_x_vjust

Get a harmonious value of vertical justification for x axis
grob_list

List of grob object
h_format_dec

Decimal formatting
gg_theme_chevron

Theme for Chevron Plot
h_unwrap_layout

Helper Function Extracting Layout Functions
get_x_hjust

Get a harmonious value of horizontal justification for x axis
ifneeded_split_col

Helper function to add a column split if specified
ifneeded_split_row

Helper function to add a row split if specified
lbt04_lyt

lbt04 Layout
lbt15_pre

LBT15 Laboratory Test Shifts to NCI-CTCAE Grade 3-4 Post-Baseline Table.
lbt05_lyt

lbt05 Layout
lbt14_lyt

lbt14 Layout
lbt05_main

LBT05 Table 1 (Default) Laboratory Abnormalities with Single and Replicated Marked.
lbt14_main

LBT14 Laboratory Test Results Shift Table – Highest NCI-CTCAE Grade Post-Baseline by Baseline Grade (Low or High Direction).
lbt06_main

LBT06 Table 1 (Default) Laboratory Abnormalities by Visit and Baseline Status Table 1.
listing_format_chevron

Format for Chevron Listings
lbt07_main

LBT07 Table 1 (Default) Laboratory Test Results and Change from Baseline by Visit.
occurrence_lyt

Occurrence Layout
modify_character

Modify character
obtain_value

Obtain value from a vector
lbt07_lyt

lbt07 Layout
lbt06_lyt

lbt06 Layout
mht01_label

MHT01 Medical History Table.
lvls

Obtain levels from vector
nocoding

No Coding Available rule
missing_rule

Missing rule
mng01_main

MNG01 Mean Plot Graph.
mla_dir

MLA Grade Direction Data
main

Main
outcome_rule

Outcome Rule
pdt01_main

pdt01 Major Protocol Deviations Table.
pdt02_lyt

pdt02 Layout
postprocess

Post process
preprocess

Pre process
pdt02_main

pdt02 Major Protocol Deviations Related to Epidemic/Pandemic Table.
pdt01_lyt

pdt01 Layout
print_args

Print Arguments
rmpt04_main

RMPT04Extent of Exposure by Ethnic Origin for Risk Management Plan Table.
rmpt05_main

RMPT05 Extent of Exposure by Race for Risk Management Plan Table.
rmpt06_main

RMPT06 Table 1 (Default) Seriousness, Outcomes, Severity, Frequency with 95% CI for Risk Management Plan.
report_null

Creates NULL Report
rmpt06_lyt

rmpt06 Layout
proportion_lyt

Proportion layout
rmpt01_main

RMPT01Duration of Exposure for Risk Management Plan Table.
rmpt03_main

rmpt03Duration of Exposure for Risk Management Plan Table.
rmpt01_lyt

rmpt01 Layout
prune_except

Prune table except specified levels
reexports

Objects exported from other packages
print_list

Print list
run

Run the TLG-generating pipeline
std_postprocessing

Standard Post Processing
smart_prune

Prune table up to an ElementaryTable
std_listing

Standard Main Listing Function
split_rows_by_recursive

Count or summarize by groups
s_summary_na

Summary factor allowing NA
rspt01_main

RSPT01 Binary Outcomes Summary.
var_labels_for

Retrieve labels for certain variables
ttet01_main

TTET01 Binary Outcomes Summary.
vst01_main

VST01 Vital Sign Results and change from Baseline By Visit Table.
script

Create Script for TLG Generation
set_section_div

Set Section Dividers
vst02_2_main

VST02 Vital Sign Abnormalities Table.
vst02_1_main

VST02 Vital Sign Abnormalities Table.
rspt01_lyt

rspt01 Layout
syn_data

Example adam Synthetic Data
vst02_lyt

vst02_1 Layout
ttet01_lyt

ttet01 Layout
yes_no_rule

Yes/No rule in title case
unwrap_layout

Extracting Layout Function.
summarize_vars_allow_na

Summarize variables allow NA
aet01_aesi_main

AET01_AESI Table 1 (Default) Adverse Event of Special Interest Summary Table.
aet03_main

AET03 Table 1 (Default) Advert Events by Greatest Intensity Table 1.
aet01_lyt

aet01 Layout
aet01_main

AET01 Table 1 (Default) Overview of Deaths and Adverse Events Summary Table 1.
aet02_label

AET02 Table 1 (Default) Adverse Events by System Organ Class and Preferred Term Table 1.
ael02_main

AEL02 Listing 1 (Default) Listing of Adverse Events.
ael01_nollt_main

AEL01_NOLLT Listing 1 (Default) Glossary of Preferred Terms and Investigator-Specified Terms.
ael03_main

AEL03 Listing 1 (Default) Listing of Serious Adverse Events.
aet05_all_pre

AET05_ALL Table 1 (Default) Adverse Event Rate Adjusted for Patient-Years at Risk - All Occurrences.
args_ls

Get Arguments List
aet05_main

AET05 Table 1 (Default) Adverse Event Rate Adjusted for Patient-Years at Risk - First Occurrence.
aet04_main

AET04 Table 1 (Default) Adverse Events by Highest NCI CTACAE AE Grade Table 1.
afun_skip

Analyze skip baseline
aet01_aesi_lyt

aet01_aesi Layout
aet10_lyt

aet10 Layout
afun_p

Analyze with defined precision
aet03_lyt

aet03 Layout
aet04_lyt

aet04 Layout
aet10_main

AET10 Table 1 (Default) Most Common (xx%) Adverse Events Preferred Terms Table 1.
aet05_lyt

aet05 Layout