Learn R Programming

BTYDplus (version 0.7.2)

elog2inc: Aggregate Event Log to incremental number of repeat transactions

Description

Aggregate Event Log to incremental number of repeat transactions

Usage

elog2inc(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 repeat transactions.

See Also

elog2cum

Examples

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

Run the code above in your browser using DataLab