Skip to contents

Utilities

General helper and execution utilities.

augment_standard_calendar()
Add Comprehensive Date-Based Attributes to a DBI lazy frame or tibble object
calculate
Execute time-intelligence or segments class objects to return the underlying transformed table

Cohort & Classification

Functions for segmentation and cohort analysis.

cohort()
Cohort Analysis
abc()
ABC classification function

Monthly Functions

mtd()
Current period month-to-date
pmtd()
Previous period month-to-date
mom()
Current full period month over previous full period month
momtd()
Current period month to date compared to previous period month-to-date
mtdopm()
Current month-to-date over full previous period month

Quarterly Functions

qtd()
Current period quarter-to-date
pqtd()
Prior period quarter-to-date
qoq()
Current full period quarter over previous full period quarter
qoqtd()
Current period quarter-to-date compared to previous period quarter-to-date
qtdopq()
Current period quarter-to-date over previous period quarter

Weekly Functions

wtd()
Current period week-to-date
pwtd()
Previous period week-to-date
wow()
Current full period week over full previous period week
wowtd()
Current period Week-to-date over previous period week-to-date
wtdopw()
Current period week-to-date over full previous period week
dod()
Current period day over previous period day

Yearly & All of time Functions

atd()
All period-to-date
ytd()
Current period year-to-date
pytd()
Previous period year-to-date
yoy()
Current full period year over previous full period year
yoytd()
Current period year-to-date compared to previous period year-to-date
ytdopy()
Current period year-to-date compared to full previous period