dc.SplitUpElogForRepeatTrans: Split Up Event Log for Repeat Transactions

Description Usage Arguments Value

View source: R/dc.R

Description

Turns an event log into a repeat transaction event log, removing customers' first transactions. Also returns a data frame with information about customers' first and last transactions.

Usage

1

Arguments

elog

event log, which is a data frame with columns for customer ID ("cust"), date ("date"), and optionally other columns such as "sales". Each row represents an event, such as a transaction. The "date" column must contain date objects, not character strings or factors.

Value

A named list: - repeat.trans.elog an event log containing only repeat transactions - cust.data data frame containing the first and last transaction information for each customer


BTYD documentation built on Nov. 18, 2021, 1:10 a.m.