Skip to content

Common S3 Generics

S3 generics used by multiple packages having the same S3 method.

Checking

Boolean logical testing of an object.

Wrappers

Wrappers and alias functions.

logit() expit()
Logit and Expit Transformations
rn2col() col2rn() has_rn() rm_rn() set_rn() add_rowid()
Helpers for Working With Row Names
liter()
List Iteration
set_Names()
Set Names of an Object

Simple calculations

Various, simple, often used “calculation” utilities.

calc_ccc()
Calculate Concordance Correlation Coefficient
calc_qvalue() plot(<q_value>)
Calculate q-values
calc_ss()
Calculate the Sum of Squared Errors
fit() tune() get_pos_class() get_model_classes() get_model_features() get_model_coef() get_model_type() get_model_params() calc_model_metrics() cross_validate() calc_predictions()
Common S3 Generics
get_outliers()
Get Indices of Statistical Outliers
fit_gauss()
Calculate Robust Gaussian Estimates
p_value_FDR() plot(<fdr>)
Calculate Benjamini-Hochberg FDR Corrected Values
enrich_test()
Test for Enrichment
normal_k2_mixture() plot(<mix_k2>)
2-distribution (k2) Gaussian Mixture Model

Simple comparison

Compare vectors, calculate cross-tabulated counts and intersections of vector contents.

diff_vecs()
Diff Two Vectors
cross_tab()
Cross Tabulate Counts

Convert and Subset Objects

Converting classes to data frames and subsetting elements of objects.

add_class()
Add a Class to an Object
convert2df()
Convert R Objects to a Data Frame
keep_it() discard_it() compact_it()
Easily Subset Elements of Objects

File System Utilities

File system useful utilities inspired by the fs package.

String Utilities

Simple utilities for manipulating strings inspired by the stringr package.

pad() squish() trim() capture()
Working with Strings

Interface Utilities

Generalized utilities for UI signaling and text output inspired by the usethis, cli, and crayon packages.

Formatting Utilities

Generalized utilities to facilitate consistency.

create_form()
Create A Formula
dater()
Standardize Date Format
write_text() read_text()
Write to a Text File
write_list()
Write List to CSV File

Handlers

For capturing errors and dealing with verbose function calls.

be_safe() be_quiet() be_hard()
Handle and Capture Side Effects

Grapes

Series of special, possibly useful, infix operators.

Library Mode

A reproducible way to install temporary, perhaps non-standard packages into a stable, reproducible environment for analysis by adding onto the R library tree.

lib_mode() lib_tree() is_lib_mode()
Activate and Deactivate Lib Mode