Description Usage Arguments Details Value
Calculate a weighted RFM score: recency, frequency, monetary value
1 2 | calculateRFM(data, weight_recency = 1, weight_frequency = 1,
weight_monetary = 1)
|
data |
- a data.table containing the transaction records |
r |
- weight of recency |
f |
- weight of frequency |
m |
- weight of monetary value |
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.
returns a data.table containing the recency, frequency and monetary score as well as well as the weighted final score and the group membership.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.