rfm: rfm_model fucntion

Description Usage Arguments Value

View source: R/rfm.R

Description

Load data in to create model

Usage

1
rfm(df, n_freq = c(2:5), n_rec = c(2:5), n_mon = c(2:5), score = TRUE)

Arguments

df

a data frame loaded with rfm_load or created previously

n_freq

an integer between 2 and 5 representing the number of quantile to create for the frequency

n_rec

an integer between 2 and 5 representing the number of quantile to create for the recency

n_mon

an interget between 2 and 5 representing the number of quantile to create for the monetary score

score

a logical default is TRUE which add a concatenated rfm score as a variable in the return object. If FALSE then the score will not be added

Value

a Data.frame object


CJB2014/rfm documentation built on June 1, 2017, 10:09 p.m.