rfm_score: Compute RFM metrics

View source: R/rfm.R

rfm_scoreR Documentation

Compute RFM metrics

Description

Recently, Frequency, Monetary score

Usage

rfm_score(
  data,
  .id_col,
  .time_col,
  .m_col = NULL,
  cur_time = Sys.time(),
  scale = 4
)

Arguments

data

Input data

.id_col

Variable to identify entities (maybe customer ID)

.time_col

Time correspond to id_col. Must be in date or date-time format

.m_col

Column to compute monetary score, default to not compute

cur_time

reference time to compute Recently metrics

scale

maximum score of each metrics


vohai611/rcohort documentation built on April 13, 2022, 6:40 a.m.