Functions for Data Handling

Generic helpers

varlist()

Variable List, Stata-style

pdf_safely()

Safely Export as PDF Without Overwriting the File

saveRDS_safely()

Safely Save Single Object Without Overwriting the RDS File

save_safely()

Safely Save R Objects Without Overwriting the File

write_csv_safely()

Safely Save CSV File Without Overwriting the File

make_exclusions()

Perform Sequential Exclusions

Functions for Vectors

scale_to_range()

Scale Numeric Vector to a Given Range

Mode()

Most Frequent Observation

roundp()

Round and Format p-Values

Estimation functions

estimate_rmtl()

Estimate Restricted Mean Time Lost (RMTL) and its Difference

Functions for Tables

Tabulate data

mygt()

Turn tibble into gt Table with Custom Formatting

tab_footnote()

Alternative footnote for gt tables exported as kable

tab_style()

Alternative styling for gt tables exported as kable

tabulate_rowcol()

Contigency Table: Tabulate Rows Times Columns

tsummary()

Summary of All Numeric Variables in a Data Frame

Functions for Plots

Generating figures

stripplot()

Box and Whiskers/Jittered Dot Plot

corrmat()

Correlation plot

exclusion_flowchart()

Exclusion Flowchart Using DiagrammeR

geom_stepribbon()

Step ribbon plots

brickchart()

Brick Chart