Description Usage Arguments Value Examples
The function calculates the RFM value of a given customer data.The function consumes customer data in a fixed format and returns RFM values and scores for each customer. Click here for an overview document Click here for a VIDEO TUTORIAL
1 2 | findRFM(customerdata, recencyWeight = 4, frequencyWeight = 4,
monetoryWeight = 4)
|
customerdata |
- A data frame of the follwing coloumns - TransactionID, Customer ID, Date of Transaction (in date format),Amount of purchase |
recencyWeight |
- Weight the model should assign to the recency factor |
frequencyWeight |
- Weight the model should assign to the frequency factor |
monetoryWeight |
- Weight the model should assign to the monetory factor |
A data frame summarized ar customer ID level with the folloiwng data :
Individual Recency, Frequency and Monetary Scores for the data set
Weighted individual Recency, Frequency and Monetary scores for the data set
Final RFM and Weighted RFM scores for each customer
Customer class on a 5 point scale
1 2 3 4 5 6 |
Source: local data frame [2 x 16]
Groups: <by row>
# A tibble: 2 x 16
CustomerID MeanValue LastTransaction NoTransaction MonetoryPercentile
<chr> <dbl> <date> <int> <dbl>
1 Cust1 1000 2010-11-01 1 1
2 Cust2 500 2008-03-25 1 0
# ... with 11 more variables: FrequencyPercentile <dbl>,
# RecencyPercentile <dbl>, MonetoryScore <dbl>, FrequencyScore <dbl>,
# RecencyScore <dbl>, MonetoryWeightedScore <dbl>,
# FrequencyWeightedScore <dbl>, RecencyWeightedScore <dbl>, FinalScore <dbl>,
# FinalWeightedScore <dbl>, FinalCustomerClass <chr>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.