calculateRFM: calculateRFM

Description Usage Arguments Details Value

View source: R/calculateRFM.r

Description

Calculate the a weighted RFM score: recency, frequency, and monetary for every customers

Usage

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

Arguments

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.

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


bachmannpatrick/myRFMpackage documentation built on June 4, 2017, 12:11 a.m.