Description Usage Arguments Details Value
Calculate the a weighted RFM score: recency, frequency, and monetary for every customers
1 2 | calculateRFM(data, weight_recency = 1, weight_frequency = 1,
weight_monetary = 1)
|
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. |
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.data containing the recency, frequency and monetary score 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.