powered by
Aggregate Event Log to incremental number of repeat transactions
elog2inc(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 repeat transactions.
elog2cum
# NOT RUN { elog <- cdnow.sample()$elog inc <- elog2inc(elog) plot(inc, typ="l") # }
Run the code above in your browser using DataLab