Displaying 2 results from an estimated 2 matches for "rfm_auto".
2017 Oct 05
0
RFM Analysis Help
Hi Hemant,
As I suspected, the code broke when I got to the line:
result <- rfm_auto(df, id="user_id", payment ="subtotal_amount",
date="created_at")
Error in rfm_auto(df, id = "user_id", payment = "subtotal_amount", date = "cr
eated_at") :
could not find function "rfm_auto"
It looks like you are using the hox...
2017 Oct 06
3
Help RFM analysis in R (i want a code where i can define my own breaks instead of system defined breaks used in auto_RFM package)
...f <- df[order(-df$R_Score,-df$F_Score,-df$M_Score),]*
* # caculate the total score*
* Total_Score <- c(100*df$R_Score + 10*df$F_Score+df$M_Score)*
* df <- cbind(df,Total_Score)*
* return(df)*
* }*
* df2<-getScoreWithBreaks(df,r,f,m)*
*# *
*library(easyRFM)*
*result <- rfm_auto(df, id="user_id", payment ="subtotal_amount",
date="created_at")*
*breaks = result$breaks*
*classes = result$classes*
*summary = result$get_table*
*classes = as.data.frame(classes)*
*breaks = as.data.frame(breaks)*
*summary = as.data.frame(summary)*
--
hemantsain.co...