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