Learn R Programming

chevron: Standard TLGs for clinical trials reporting

[![Check

Copy Link

Version

Install

install.packages('chevron')

Monthly Downloads

563

Version

0.2.12

License

Apache License 2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Joe Zhu

Last Published

June 20th, 2025

Functions in chevron (0.2.12)

aet10_main

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

Check variable only has one unique value.
assert_valid_type

Check variable is of correct type
afun_p

Analyze with defined precision
aet10_lyt

aet10 Layout
aet04_main

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

cfbt01 Layout
check_all_colnames

Check that all names are among column names
convert_to_month

Helper function to convert to months if needed
assert_valid_variable

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

CFBT01 Change from Baseline By Visit Table.
count_children

Count Children
chevron_tlg-class

chevron_tlg class
check_one_colnames

Check that at least one name is among column names
cml02a_gl_main

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

aet04 Layout
chevron-package

chevron package
aet05_main

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

Data Set
coxt02_main

COXT02 Multi-Variable Cox Regression Model Table.
cmt02_pt_main

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

COXT01 (Default) Cox Regression Model Table.
cmt01_label

CMT01A Concomitant Medication by Medication Class and Preferred Name.
coxt01_lyt

COXT01 Layout
deparse_print

Deparse print
dmt01_lyt

dmt01 Layout
assert_valid_var_pair

Check variables are of same levels
assert_valid_var

Check whether var is valid
dmt01_main

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

Count patients recursively
aet05_all_pre

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

Count or summarize by groups
ctcv4_dir

CTC version 4 Grade Direction Data
egt02_1_main

EGT02 ECG Abnormalities Table.
dst01_main

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

CTC version 5 Grade Direction Data
fstg01_main

FSTG01 Subgroup Analysis of Best Overall Response.
format_date

Formatting of date
egt02_lyt

egt02 Layout
egt05_qtcat_lyt

EGT05_QTCAT Layout
ext01_lyt

ext01 Layout
egt03_main

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

Dummy template.
egt01_main

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

Get Section dividers
ifneeded_split_row

Helper function to add a row split if specified
ifneeded_split_col

Helper function to add a column split if specified
ext01_main

EXT01 Exposure Summary Table.
get_page_by

Get page by value
egt02_2_main

EGT02_2 ECG Abnormalities Table.
gg_list

List of gg object
dst01_lyt

dst01 Layout
lbt07_main

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

Decimal formatting
create_id_listings

Concatenate Site and Subject ID
h_unwrap_layout

Helper Function Extracting Layout Functions
get_x_vjust

Get a harmonious value of vertical justification for x axis
lbt05_main

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

DTHT01 Table 1 (Default) Death Table.
dtht01_lyt

dtht01 Layout
expand_list

Expand list to each split
lbt06_lyt

lbt06 Layout
execute_with_args

Execute function with given arguments
lbt06_main

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

MLA Grade Direction Data
do_call

Execute a function call
dose_change_rule

Dose Change Rule
lbt07_lyt

lbt07 Layout
get_grade_rule

Get grade rule
gen_args

General Argument Name Convention
lbt01_main

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

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

KMG01 Kaplan-Meier Plot 1.
egt03_lyt

egt03 Layout
fstg02_main

FSTG02 Subgroup Analysis of Survival Duration.
empty_rule

Empty rule
lbt14_main

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

Obtain levels from vector
report_null

Creates NULL Report
lbt14_lyt

lbt14 Layout
main

Main
mng01_main

MNG01 Mean Plot Graph.
rmpt01_main

RMPT01Duration of Exposure for Risk Management Plan Table.
grob_list

List of grob object
gg_theme_chevron

Theme for Chevron Plot
preprocess

Pre process
fuse_sequentially

Fuse list elements
outcome_rule

Outcome Rule
pdt01_main

pdt01 Major Protocol Deviations Table.
modify_character

Modify character
lbt05_lyt

lbt05 Layout
nocoding

No Coding Available rule
get_subset

Subset Arguments and Merge
rmpt06_main

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

Set Section Dividers
script

Create Script for TLG Generation
unwrap_layout

Extracting Layout Function.
pdt01_lyt

pdt01 Layout
pdt02_main

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

RSPT01 Binary Outcomes Summary.
run

Run the TLG-generating pipeline
s_summary_na

Summary factor allowing NA
rmpt06_lyt

rmpt06 Layout
summarize_vars_allow_na

Summarize variables allow NA
obtain_value

Obtain value from a vector
smart_prune

Prune table up to an ElementaryTable
var_labels_for

Retrieve labels for certain variables
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.
split_rows_by_recursive

Count or summarize by groups
rspt01_lyt

rspt01 Layout
get_x_hjust

Get a harmonious value of horizontal justification for x axis
lbt15_pre

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

LBT04 Laboratory Abnormalities Not Present at Baseline Table.
listing_format_chevron

Format for Chevron Listings
lbt04_lyt

lbt04 Layout
reexports

Objects exported from other packages
prune_except

Prune table except specified levels
print_list

Print list
ttet01_main

TTET01 Binary Outcomes Summary.
proportion_lyt

Proportion layout
vst02_2_main

VST02 Vital Sign Abnormalities Table.
mht01_label

MHT01 Medical History Table.
vst02_lyt

vst02_1 Layout
occurrence_lyt

Occurrence Layout
yes_no_rule

Yes/No rule in title case
syn_data

Example adam Synthetic Data
missing_rule

Missing rule
ttet01_lyt

ttet01 Layout
pdt02_lyt

pdt02 Layout
postprocess

Post process
rmpt01_lyt

rmpt01 Layout
std_listing

Standard Main Listing Function
rmpt03_main

rmpt03Duration of Exposure for Risk Management Plan Table.
std_postprocessing

Standard Post Processing
vst02_1_main

VST02 Vital Sign Abnormalities Table.
vst01_main

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

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

Get Arguments List
ael03_main

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

aet01 Layout
ael02_main

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

aet01_aesi Layout
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.
aet03_lyt

aet03 Layout
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.
aet05_lyt

aet05 Layout
afun_skip

Analyze skip baseline