Skip to contents

Conditionals

swap_if()
Swap two values if a condition is met

Colors

col2hex()
Convert a color name to hexadecimal format

Dialogs

shush()
Suppress messages and warnings

Files

download_file()
Download files from the internet to a local directory
get_file_ext()
Get file extensions
get_file_name_without_ext()
Get file names without the extension
get_file_size()
Get the sizes of local files or files from URLs

Replacement

list_replace_all()
Replace matches in a list
vct_replace_all()
Replace values in a vector

Parsing & Conversion

na_as()
Return a NA value of the same type of an R object
vector_to_c()
Put a vector into c()

R Packages

update_pkg_versions()
Update package versions in the DESCRIPTION file
update_pkg_year()
Update the year in system files of a package

Scoping

grab_fun_par()
Grab all the parameters in a function

Strings

extract_initials()
Extract initials from a character vector

Statistics

cohens_d()
Compute Cohen's d statistic
cut_interval_mean()
Compute the interval means of a cut factor
mode()
Find the most frequent value in a vector
prop()
Compute the proportion of values in a vector
std_error()
Compute the standard error of the sample mean
test_outlier()
Test for outliers in a numeric vector
remove_outliers()
Remove outliers from a numeric vector

Vectors

count_na()
Count the amount of NA values in a vector
drop_na()
Remove NA values from an atomic object
inbetween_integers()
Get all the integers between two integers

Zotero

find_orphan_files()
Find orphan files in a Zotero library
list_linked_files()
List all files linked to a reference in a Zotero library