calculateRFMScores: calculateRFMScores

Description Usage Arguments Details Value

Description

Calculate a weighted RFM score: recency, frequency, and monetary value.

Usage

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

Arguments

data

- A data.table containing the transaction details for every customer. Transaction date has to be of the lubridate form "yyyy-mm-dd" and have name "TransDate".

r

- Weight of recency.

f

- Weight of frequency.

m

- Weight of monetary value.

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.table containing the recency, frequency and monetary score as well as the weighted final score and the group membership.


ninakoenig/RFMPackage documentation built on May 28, 2019, 3:12 p.m.