Package index
-
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
-
colon()
- Create Integer Sequence Beginning at 1
-
color_text()
- Color text using HTML color styling
-
combine()
- Combine multiple columns into one
-
common_regex()
- Common Regular expressions
-
construct_regex()
- Construct regex patterns
-
count_days()
- Count days between two dates
-
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
-
create_vec()
- Generate code from a vector of values
-
delister()
- Wrapper for
unlist()
, withuse.names
set toFALSE
-
density()
- Density plot
-
describe()
- Describe a dataset
-
describe_unique()
- Describe unique values in a data frame
-
df_2_chr()
- Coerce numeric columns to character
-
df_types()
- Get the types of each column in a data frame
-
display_long()
- Pivot data frame to long format for easy printing
-
duration_vec()
- Calculate the duration between two dates
-
expand_date_range()
- Expand date range to include all dates
-
fancy_ts()
- Plots a fancy time series
-
geomean()
- Calculate Geometric Mean
-
gg_theme()
- ggplot2 theme
-
gluestick()
- String interpolation
-
`%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_valid_npi()
- Validate NPIs
-
make_interval()
- Create interval, period and time length columns from a start and end date
-
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
-
print_ls()
- Print a named list
-
random_npi_generator()
- Generate random NPIs
-
rate_of_return()
- Lagged rate of return
-
remove_quiet()
- Remove empty rows and columns
-
remove_quotes()
- Remove single or double quotes from a character string
-
rename_seq()
- Generate a sequence of numbers with a new prefix
-
roundup()
- Round a numeric vector up to the nearest decimal place
-
search_in()
- Search in data frame
-
search_in_if()
- Search in data frame column if search term is not
NULL
-
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
-
uniq_rmna()
- Remove duplicates and
NA
values
-
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