Cohort Analysis
cohort.Rd
A database is remake of 'https://github.com/PeerChristensen/cohorts' excellent cohort package combining chort_table_month, cohort_table_year, cohort_table_day into a single package. Re-written to be database friendly tested against snowflake and duckdb databases
Details
This will group your
.value
column by shared time attributes from the.date
columnIt will assign to each member a time base cohort based on the member's first entry in the
.date
columnThe cohort will be generalized by the time_unit argument you selected
Then the distinct count of each cohort member over time is calculated