rsquaredacademy / rfm

Tools for Customer Segmentation using RFM Analysis
https://rfm.rsquaredacademy.com/
Other
59 stars 28 forks source link

Rename customer_id column in rfm-table-transaction.R #91

Open elalbaicin opened 4 months ago

elalbaicin commented 4 months ago

I was getting an error whenever I ran rfm_table_order(); as it turns out, the issue was at a join in rfm_prep_bins(). The data frame "other_cols" passed to argument "data" did not have a column named "customer_id", so it couldn't be used as a join key and the function would crash.

In order to solve the issue, I renamed the customer ID column in "other_cols" with rfm_table_order.default()