Skip to contents

All functions

age_days()
Calculate Number of Days Between Two Dates
change()
Calculate Lagged Metrics
change_lagged()
Calculate lagged values by column
chg_abs()
Lagged absolute change
chg_pct()
Lagged percentage change
clean_number()
Clean character vector of numbers
collapser()
Wrapper for paste0() that collapses result
combine()
Combine multiple columns into one
count_days()
Count days between two dates
count_missing()
Count missing values
count_prop()
Count and calculate proportion of each group
count_prop_multi()
Count and calculate proportion of each group
count_wide()
Count rows and columns and pivot to wide format
delister()
Wrapper for unlist(), with use.names set to FALSE
density()
Density plot
df_2_chr()
Coerce numeric columns to character
display_long()
Pivot data frame to long format for easy printing
duration_vec()
Calculate the duration between two dates
fancy_ts()
Plots a fancy time series
geomean()
Calculate Geometric Mean
gg_theme()
ggplot2 theme
`%nin%`
Infix operator for not in statements
`%nn%`
Infix operator for if (!is.null(x)) y else x statements
gt_marks()
gt Marks
histogram()
Histogram
invert_named()
Invert a named vector
is_directory()
Test if a path is a directory
is_readable()
Test if a path is readable
make_interval()
Create interval, period and time length columns from a start and end date
mean_na()
mean() with NA removal
median_na()
median() with NA removal
months_regex()
Regular expression for matching month names
na_if_common()
Convert various character strings to NA
named_group_split()
Split a tibble by Groups with Named List Output
new_value()
Calculate the new value from the old value and the percentage change between the two values
null_if_empty()
Return NULL if the input is empty, otherwise return the input
pad_number()
Pad numbers with zeroes
percentage_calculator()
Percentage calculator
percentage_change()
Calculate the percentage change between two values
percentage_difference()
Calculate the percentage difference between two values
rate_of_return()
Lagged rate of return
remove_quiet()
Remove empty rows and columns
rename_seq()
Generate a sequence of numbers with a new prefix
roundup()
Round a numeric vector up to the nearest decimal place
sd_na()
sd() with NA removal
search_in()
Search in data frame
search_in_if()
Search in data frame column if search term is not NULL
search_in_if_args()
Search in data frame column if search term is not NULL
show_missing()
Show missing values
single_line_string()
Format multiple line character vector to single line
sorted_bars()
Sorted Bar Chart
splitter()
Wrapper for strsplit() that unlists and unnames results
srchcol()
Search a data frame column by string
sum_na()
sum() with NA removal
years_df()
Calculate the number of years between two dates
years_floor()
Calculate the number of years between two dates rounded down to the nearest whole number
years_vec()
Calculate the number of years between two dates