powered by
Aggregate Event Log to cumulative number of repeat transactions
elog2cum(elog, by = 7)
Event log, a data.frame with columns cust and transaction time t or date.
data.frame
cust
t
date
Only return every -th number. Defaults to 7, and thus returns weekly numbers.
Numeric vector of cumulative repeat transactions.
elog2inc
# NOT RUN { elog <- cdnow.sample()$elog cum <- elog2cum(elog) plot(cum, typ="l") # }
Run the code above in your browser using DataLab