Learn R Programming

BTYDplus (version 0.7.2)

elog2cum: Aggregate Event Log to cumulative number of repeat transactions

Description

Aggregate Event Log to cumulative number of repeat transactions

Usage

elog2cum(elog, by = 7)

Arguments

elog

Event log, a data.frame with columns cust and transaction time t or date.

by

Only return every -th number. Defaults to 7, and thus returns weekly numbers.

Value

Numeric vector of cumulative repeat transactions.

See Also

elog2inc

Examples

Run this code
# NOT RUN {
elog <- cdnow.sample()$elog
cum <- elog2cum(elog)
plot(cum, typ="l")
# }

Run the code above in your browser using DataLab