Learn R Programming

cohorts (version 1.0.1)

cohort_table_month: Create a Cohort Table Using Month Level Event Data

Description

Creates a cohort table with month level event data with rows corresponding to cohort numbers and columns as months.

Usage

cohort_table_month(df, id_var, date)

Arguments

df

Dataframe

id_var

ID variable

date

Date

Value

Cohort table

Examples

Run this code
# NOT RUN {
cohort_table_month(online_cohorts, CustomerID, InvoiceDate)

# }

Run the code above in your browser using DataLab