Data Summary

draw_normal()

Draw a normal distribution plot using ggplot2.

zround()

Round and Format Numbers to Specific Decimal Places

meanSD()

Calculate Mean and Standard Deviation, and Format the Output

range()

Calculate and Format Range of a Numeric Vector

count_percent()

Calculate Counts and Percentages of Factor Levels

Rmd functions

rmd_hook_set()

Set custom knit hooks for R Markdown

rmd_opts_set()

Set default options for code chunks in R Markdown

set_ggplot_theme()

Set custom theme for ggplot2 plots

zkbl()

Format and style a table for LaTeX output

print_table()

Print a styled table for HTML or LaTeX output

print_table_stripe()

Print a styled LaTeX table with alternating row colors

Tool functions

cut_txt()

Cut text file into chunks with specified number of chapters

cleanFolder()

Clean folder

clip()

Capture output and copy to clipboard

sourceDir()

Source all R scripts in a folder

summary_w2()

Summarize W2 data for a given year