Learn R Programming

chevron: Standard TLGs for clinical trials reporting

[![Check

Copy Link

Version

Install

install.packages('chevron')

Monthly Downloads

756

Version

0.2.15

License

Apache License 2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Joe Zhu

Last Published

September 30th, 2026

Functions in chevron (0.2.15)

assert_valid_var

Check whether var is valid
chevron_tlg-class

chevron_tlg class
dose_change_rule

Dose Change Rule
cml02a_gl_main

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

Execute a function call
assert_valid_variable

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

COXT01 (Default) Cox Regression Model Table.
coxt02_main

COXT02 Multi-Variable Cox Regression Model Table.
egt03_main

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

CFBT01 Change from Baseline By Visit Table.
chevron-package

chevron package
egt01_main

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

Check that at least one name is among column names
cmt02_pt_main

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

CTC version 4 Grade Direction Data
dummy_template

Dummy template.
cmt01_label

CMT01A Concomitant Medication by Medication Class and Preferred Name.
cfbt01_lyt

cfbt01 Layout
check_all_colnames

Check that all names are among column names
egt02_1_main

EGT02 ECG Abnormalities Table.
format_date

Formatting of date
ctcv5_dir

CTC version 5 Grade Direction Data
get_subset

Subset Arguments and Merge
get_page_by

Get page by value
egt02_2_main

EGT02_2 ECG Abnormalities Table.
afun_p

Analyze with defined precision
grob_list

List of grob object
fstg02_main

FSTG02 Subgroup Analysis of Survival Duration.
count_or_summarize

Count or summarize by groups
get_x_hjust

Get a harmonious value of horizontal justification for x axis
expand_list

Expand list to each split
fstg01_main

FSTG01 Subgroup Analysis of Best Overall Response.
execute_with_args

Execute function with given arguments
count_patients_recursive

Count patients recursively
lbt14_main

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

Theme for Chevron Plot
nocoding

No Coding Available rule
lbt15_pre

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

Format for Chevron Listings
mht01_label

MHT01 Medical History Table.
h_unwrap_layout

Helper Function Extracting Layout Functions
modify_character

Modify character
lbt14_lyt

lbt14 Layout
fuse_sequentially

Fuse list elements
missing_rule

Missing rule
preprocess

Pre process
assert_valid_var_pair

Check variables are of same levels
assert_valid_type

Check variable is of correct type
egt02_lyt

egt02 Layout
assert_single_value

Check variable only has one unique value.
dataset

Data Set
convert_to_month

Helper function to convert to months if needed
deparse_print

Deparse print
get_section_div

Get Section dividers
count_children

Count Children
prune_except

Prune table except specified levels
empty_rule

Empty rule
reexports

Objects exported from other packages
report_null

Creates NULL Report
rmpt01_main

RMPT01Duration of Exposure for Risk Management Plan Table.
print_args

Print Arguments
unwrap_layout

Extracting Layout Function.
kmg01_main

KMG01 Kaplan-Meier Plot 1.
dst01_main

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

EXT01 Exposure Summary Table.
dmt01_main

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

Decimal formatting
pdt01_lyt

pdt01 Layout
rspt01_main

RSPT01 Binary Outcomes Summary.
dmt01_lyt

dmt01 Layout
ttet01_main

TTET01 Binary Outcomes Summary.
run

Run the TLG-generating pipeline
rmpt06_lyt

rmpt06 Layout
ttet01_lyt

ttet01 Layout
lbt06_main

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

Concatenate Site and Subject ID
s_summary_na

Summary factor allowing NA
coxt01_lyt

COXT01 Layout
ifneeded_split_col

Helper function to add a column split if specified
egt05_qtcat_main

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

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

egt03 Layout
ifneeded_split_row

Helper function to add a row split if specified
dst01_lyt

dst01 Layout
gg_list

List of gg object
get_x_vjust

Get a harmonious value of vertical justification for x axis
lbt07_main

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

Obtain value from a vector
ext01_lyt

ext01 Layout
main

Main
get_grade_rule

Get grade rule
dtht01_main

DTHT01 Table 1 (Default) Death Table.
smart_prune

Prune table up to an ElementaryTable
lbt07_lyt

lbt07 Layout
postprocess

Post process
lbt01_main

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

Retrieve labels for certain variables
rspt01_lyt

rspt01 Layout
lvls

Obtain levels from vector
gen_args

General Argument Name Convention
lbt05_main

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

Example adam Synthetic Data
mla_dir

MLA Grade Direction Data
occurrence_lyt

Occurrence Layout
rmpt01_lyt

rmpt01 Layout
proportion_lyt

Proportion layout
egt05_qtcat_lyt

EGT05_QTCAT Layout
lbt06_lyt

lbt06 Layout
dtht01_lyt

dtht01 Layout
print_list

Print list
split_rows_by_recursive

Count or summarize by groups
vst02_2_main

VST02 Vital Sign Abnormalities Table.
rmpt03_main

rmpt03Duration of Exposure for Risk Management Plan Table.
vst02_lyt

vst02_1 Layout
pdt02_lyt

pdt02 Layout
yes_no_rule

Yes/No rule in title case
rmpt06_main

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

VST02 Vital Sign Abnormalities Table.
vst01_main

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

Standard Main Listing Function
std_postprocessing

Standard Post Processing
lbt04_lyt

lbt04 Layout
summarize_vars_allow_na

Summarize variables allow NA
pdt01_main

pdt01 Major Protocol Deviations Table.
rmpt05_main

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

LBT04 Laboratory Abnormalities Not Present at Baseline Table.
outcome_rule

Outcome Rule
mng01_main

MNG01 Mean Plot Graph.
lbt05_lyt

lbt05 Layout
script

Create Script for TLG Generation
rmpt04_main

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

Set Section Dividers
aet03_main

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

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

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

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

aet03 Layout
aet01_lyt

aet01 Layout
aet01_aesi_main

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

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

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

aet01_aesi Layout
aet05_all_pre

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

AET10 Table 1 (Default) Most Common (xx%) Adverse Events Preferred Terms Table 1.
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.
args_ls

Get Arguments List
aet05_lyt

aet05 Layout
afun_skip

Analyze skip baseline
aet10_lyt

aet10 Layout
aet04_lyt

aet04 Layout