ti4.0.0 package

Time Intelligence and Customer Segmentation for Financial Analysis

abc_fn

Classify a group by proportion of a variable (A,B,C,...)

abc

ABC classification function

atd_fn

All-to-date execution function

atd

All period-to-date

augment_standard_calendar_dbi

Add Comprehensive Date-Based Attributes to a DBI lazy frame

augment_standard_calendar_tbl

Add Comprehensive Date-Based Attributes to a Data Frame

augment_standard_calendar

Add Comprehensive Date-Based Attributes to a DBI lazy frame or tibble ...

calculate

Execute time-intelligence or segments class objects to return the unde...

cohort_fn

Internal function for the cohort segment object

cohort

Cohort Analysis

complete_standard_calendar

Title

create_calendar

Create Calendar Table

create_full_dbi

Title

detect_sql_dialect

Detect SQL dialect from a DBI connection

dod_fn

Day-over-day execution function

dod

Current period day over previous period day

generate_cli_action

Generate CLI actions

generate_retail_calendar

Generate a retail (4-4-5, 4-5-4, or 5-4-4) calendar mapping table

is_yyyy_mm_dd

Validate an input is YYYY-MM-DD format

make_action_cli

Make Action field CLI args

make_db_tbl

Make an in memory database from a table

mom_fn

month-over-month execution function

mom

Current full period month over previous full period month

momtd_fn

Current year to date over previous year-to-date for tibble objects

momtd

Current period month to date compared to previous period month-to-date

mtd_fn

Month-to-date execution function

mtd

Current period month-to-date

mtdopm_fn

Month-to-date over full previous month execution function

mtdopm

Current month-to-date over full previous period month

pmtd_fn

Previous month-to-date execution function

pmtd

Previous period month-to-date

pqtd_fn

Previous quarter-to-date for tibble objects

pqtd

Prior period quarter-to-date

print_actions_steps

Print action steps

print_calendar_info

Print calendar information block

print_fn_info

Prints function header info

print_next_steps

Prints functions next steps

print

Print ti objects

pwtd_fn

Previous week-to-date execution function

pwtd

Previous period week-to-date

pytd_fn

Previous year-to-date execution function

pytd

Previous period year-to-date

qoq_fn

Quarter-over-quarter execution function

qoq

Current full period quarter over previous full period quarter

qoqtd_fn

Current quarter to date over previous quarter-to-date for tibble objec...

qoqtd

Current period quarter-to-date compared to previous period quarter-to-...

qtd_fn

Quarter-to-date execution function

qtd

Current period quarter-to-date

qtdopq_fn

quarter-to-date over previous quarter execution function

qtdopq

Current period quarter-to-date over previous period quarter

seq_date_sql

Generate a Cross-Dialect SQL Date Series

sql_date_add

Generate dialect-appropriate date addition SQL

wow_fn

Week-over-week execution function

wow

Current full period week over full previous period week

wowtd_fn

Week-to-date over previous week-to-date execution function

wowtd

Current period Week-to-date over previous period week-to-date

wtd_fn

Week-to-date execution function

wtd

Current period week-to-date

wtdopw_fn

Week-to-date over full previous week execution function

wtdopw

Current period week-to-date over full previous period week

yoy_fn

Current year-to-date over previous period year-to-date execution funct...

yoy

Current full period year over previous full period year

yoytd_fn

Current year to date over previous year-to-date execution function

yoytd

Current period year-to-date compared to previous period year-to-date

ytd_fn

Year-to-date execution function

ytd

Current period year-to-date

ytdopy_fn

Year-to-date over full prior period year

ytdopy

Current period year-to-date compared to full previous period

Calculate time intelligence metrics for financial planning and analysis. 'ti' provides functions for period-over-period comparisons (year-over-year, month-over-month), period-to-date calculations (YTD, MTD, QTD), and customer segmentation (ABC analysis, cohorts). Supports standard and retail calendars (4-4-5, 4-5-4, 5-4-4) with both in-memory and database backends via 'dbplyr'.

  • Maintainer: Alejandro Hagan
  • License: MIT + file LICENSE
  • Last published: 2026-02-10 20:30:02 UTC