create.purchase.string {CADF}R Documentation

Function called during Customer$new() (the Customer R6 class) to create purchase string for the customer.

Description

Function called during Customer$new() (the Customer R6 class) to create purchase string for the customer.

Usage

create.purchase.string(x, id.column, date.column, return.mode = "")

Arguments

x

Transactional data associated with customer id.

id.column

Description goes here.

date.column

Description goes here.

return.mode

Set to matrix if you want result returned as a matrix

Value

purchase string in 0/1 format. Returned as string.

Examples

data("transactions")
customer <- subset(transactions, transactions$ID == 5)
create.purchase.string(customer, "ID", "PURCHASE_DATE")

[Package CADF version 0.1 Index]