Templates

Templates for R Markdown, Slides, Plots, etc.

theme_moffitt() theme_grk()

A Clean Theme with Moffitt Style

scale_colour_moffitt() scale_color_moffitt() scale_fill_moffitt()

Moffitt Color Scales for ggplot2

doc_new()

Create New Document

moffitt_colors

Moffitt Colors

Code Style

use_grk_style() grk_style_transformer() grk_style_text() grk_style_file() grk_style_dir() grk_style_pkg()

The grkmisc Code Style

dplyr Helpers

Helper functions that extended or work well with dplyr.

if_na()

Replace Missing Values

if_na(<data.frame>)

Replace Missing Values in Data Frames

recode_if()

Recode a value based on predicate condition

logger()

Pipe-Capable Log Messages

Helper Functions

General helper functions that make things easier.

ggsave_and_print()

Save and/or Print Plot

shorten_github_url()

Create Shortlink for a GitHub URL using git.io

pretty_num() format_pretty_num()

Pretty print scaled numbers

pretty_string() format_pretty_string()

Truncate and wrap strings

knitr_bold_row()

Embolden rows matching an expression

knitr_list_cache()

List cached knitr chunks

knitr_load_cache()

Lazy load results from a knitr cache

auto_extract()

Auto Extract Zipped Files

RStudio Addins

insert_styled_text()

Insert Styled Text

style_console()

Style text from console

insert_path_dir_active() insert_path_dir_active_abs()

Insert Path Containing Active File

Packages and Projects

Helper functions to start up packages or projects.

use_grk_starter_package()

Create a default package skeleton

use_grk_starter_project()

Create a default project skeleton

use_grk_gitignore()

Use Default .gitignore File

use_git_hook_precommit()

Use grkmisc git Pre-Commit Hook

use_grk_github_labels()

Setup GerkeLab Default GitHub Labels

Data Import

Import Data

read_csv_filtered()

Read CSV and Filter on the Fly

read_tsv_filtered()

Read TSV and Filter on the Fly

read_sas_with_format()

Read SAS file and label according to PROC FORMAT

read_proc_format()

Read Proc Format File

add_proc_format_labels()

Add labels from proc_format file to SAS data file