Table functions

print_kable()

Print and Format a Styled Table for HTML or LaTeX Output

print_flextable()

Print a Styled Table for HTML or Word Output

save_flextable()

Save a Flextable as a PDF

split_df()

Split Data Frame into Multiple Parts

Data Summary

summarize_plots()

Summarize and Plot Columns of a Data Frame

summarize_table()

Summarize Data Frame by Column Type

plot_coef()

Plot Regression Coefficients

draw_normal()

Draw a normal distribution plot using ggplot2

compare_categorical()

Perform Cross-Tabulation and Fisher's Exact Test

compare_numerical()

Compute Mean and SD for Two Samples by Grouping Variable and Perform One-Way ANOVA

git_commit_push()

Commit Changes and Push to Git

git_tag_push()

Tag Version in Git and Push

fun_links()

Generate Links to Function Documentation for packagedown

Compiling files

compile_texs()

Compile LaTeX Files

compile_rnws()

Knit Files to PDF and Track Status

compile_handouts()

Create and Compile Handouts from a List of TeX Files

cleanLatex()

Remove LaTeX Auxiliary Files

Help Functions

meanSD()

Calculate Mean and Standard Deviation, and Format the Output

count_percent()

Calculate Counts and Percentages of Factor Levels

zround()

Round and Format Numbers to Specific Decimal Places

zrange()

Calculate and Format Range of a Numeric Vector

zpvalue()

Format p-value for Display

combine_table()

Combine Two Tables with different statistics.

rmd_hook_set()

Set custom knit hooks for R Markdown

rmd_opts_set()

Set default options for code chunks in R Markdown

rnw_hook_set()

Set Custom Hooks for knitr in RNW Files

rnw_opts_set()

Set Global and knitr Options for RNW Files

set_ggplot_theme()

Set custom theme for ggplot2 plots

Tool functions

clip()

Capture output and copy to clipboard

cut_txt()

Cut text file into chunks with specified number of chapters

replace_punctuation()

Replace Chinese Punctuation with English Equivalents

sourceDir()

Source All R Scripts in a Directory

summary_w2()

Summarize W2 Data for a Given Year