calculateRFM: calculateRFM

Description Usage Arguments Details Value

Description

Calculate the a weighted RFM score: recency, frequency, and monetary for every customers

Usage

1
2
calculateRFM(data, weight_recency = 1, weight_frequency = 1,
  weight_monetary = 1)

Arguments

data

- A data.table containing the transaction rececord details for every customer.

weight_recency

- Weight of recency.

weight_frequency

- Weight of frequency.

weight_monetary

- Weight of monetary.

Details

data contains the transactional data. The dataset must contain a column labeled "Customer" that allows unique customer identification and a column labeled "TransDate", indicating the purchase date. The column "PurchAmount" specifies the total spending per purchase.

Value

Returns a data.data containing the recency, frequency and monetary score as well as the weighted final score and the group membership.


bachmannpatrick/myRFMpackage documentation built on May 11, 2019, 5:23 p.m.